Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Deloittte Interview Questions on .. Net {3+yrs experienced}

Answer Posted / ramasubbareddy

Quest:How to call javascript from c# code under button_click
without using Button1.Attributes.Is there any method?

Answer: Yes, There is a PageMethod is used to call javascript from code behind
Example:
========

If i need to pass a value from .aspx to C# codebehind
I need to follow this:

Enable pagemethods= true in your script manager
then
write a function :

<script language ="javascript">
function sendvalue()
{
pagemethod.GetValue("Hello this is test");
}

</script>

C# code:
========

[webmethod]
public static void GetValue(string input)
{
Response.Write(input);
}

OUTPUT:
=======
Hello this is test

Note:

always use static otherwise it will not work


If your not clear with the above solution give me a request i will send original code mail me @ reddy_reddymgr@yahoo.co.in

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A frog wants to climb a pole which is 15 feet in height, frog can jump 3 feet every minute after which he rests for a minute where he slips down 2 feet. How much time will the frog take to reach the top of the pole?

1043


email me previous question papers of bob bank for po exams

2460


my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef output file: 8765_____ abc*$#1___ 1_2_3_4__ cdef____ghi h_k_z_a__ a_z_k_h___ ihg____ghi 4_3_2_1___ 1#$*cba__ ______5678 fedcb4321

1809


what is placement paper?

2600


Recently conducted Apptitude test

1898


HI SIR I WANT PREVIOUS QUESTION PAPER OF HPCL I M CHEMICAL ENGG.

2343


What kind of Issues/bugs arise in ETL projects? I would like to know few issues (critical to somewhat bugs ) normally occur in ETL process especially when testing? Domains can be banking, retail or any.

1849


Hi.. Guys Im pranitha, presently im working in a organisation & im look for job at MNC's like DELL, Delloitte, Bank of America, Genpect, etc., I have completed B.com . Pls help me...

1594


What are the frequently asked questions for interview in capital iq company ?

1817


Do we have vacancy for HR RECRUITER ?

1806


your project to describe and tell about : 1. My favorite things 2. My favorite places at home 3. Animals *Choose one of them to describe *Write on your paper *If you done, Send me *Did you get it

1237


If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...

4359


what is bidirectional?

1829


Sks Microfinance

1403


my question is : reverse a string in COBOL program (please write a code asap) input file: 1234abcdef abc*$#1___ cdef____ghi a_z_k_h___ 4_3_2_1___ ______5678 output file: 8765_____ 1_2_3_4__ h_k_z_a__ ihg____ghi 1#$*cba__ fedcb4321

1704