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
printf("%d",printf("%d",printf("%d",printf("%s","ILOVECPROGRAM")))); whats the output
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
Recently conducted Apptitude test
Danlaw placement questions and answers
What are the frequently asked questions for interview in capital iq company ?
speak 1min on topic Travelling,memorable moment ,memorable day?
what you will do when you struck in traffic ?
Sks Microfinance
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?
If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...
what is placement paper?
Zero setting of sejong rottary press
email me previous question papers of bob bank for po exams
HI SIR I WANT PREVIOUS QUESTION PAPER OF HPCL I M CHEMICAL ENGG.
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.