GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 71 of 164    Print  
when we click a button on webform it shows java script which function is used to show this

thanks friends

ambica kiran kumar.majji

  
Total Answers and Comments: 1 Last Update: October 25, 2006     Asked by: ambica kiran 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 25, 2006 09:19:14   #1  
       

RE: when we click a button on webform it shows java sc...

Hi

You can write any javascript function in the html page and call that function in the button attribute in code-behind. For eg. in html page you can write the function as follows:

<script language javascript >

function sayhello()

{ alert( Hello ) }

</script>

In the code behind on the PageLoad Event you can call this function as follows:

Button1.Attributes.Add( OnClick javascript:return sayhello() ; );

Hope this helps

Raja Raman


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : You can Use namespace mentioned above.For Bar Chart / Pie Chart Convert data to numeric Equivalent/ % thenUsing HatchBrush class/Rectangle Class Draw rectangle or Circles or Ellipse Partially using methods DrawCircle/Rectangle etc. Create evivalent Image ...
Read Answers (2) | Asked by : Prajakta Deshpande

This is how I have done this in one of our projects:-1. First way is store image in BYTEARRAY while checking UPLOAD CONTROL and hold that image in CACHE. And then store it (bytearray) in Database while 
Latest Answer : To upload the image in to the Oracle: if you are using stored procedure then by using command instance object you and pass the image in Binary Format is Request.BinaryRead() and to display the image user the same method i.e. reponse.binarwrite() ...
Read Answers (1) | Asked by : Nidhi

When we click a button on webform it shows java script which function is used to show thisthanks friends ambica kiran kumar.majji
Read Answers (1) | Asked by : ambica kiran

ViewState in ASP.NET IntroductionMicrosoft ASP.NET Web Forms pages are capable of maintaining their own state across multiple client round trips. When a property is set for a control, the ASP.NET saves 
Latest Answer : Session variables are maintained for particular session like for particular user only, so any user related information has to be saved in session variable.  While application variables are maintained for whole application. Whole application related ...
Read Answers (2) | Asked by : Shiv

explain virtual function in c# with an example 
Latest Answer : Some Facts about Virtual Keyword1)It is not compulsury to mark the derived/child class function with Override KeyWord while base/parent class contains a virtual method2)Instead of Virtual we can use New Keyword3)We will get a warning if we won't use ...


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value&nbsp; and&nbsp; passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

What is DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf(&quot;%d&quot;,printf(&quot;%d %d %d&quot;, a,a,a)); } In this above program the inner printf i
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(&ldquo;%d&rdquo;,x); z= sample() } sample() { printf(&ldquo;Testing program&rdquo;); } Output is &nbsp;&nbsp;&n
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.&nbsp;&nbsp; When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape