What are the ways to emit client-side javascript from server-side code in asp. Net?



What are the ways to emit client-side javascript from server-side code in asp. Net?..

Answer / Mahendra

There are several ways to emit client-side JavaScript from server-side code in ASP.NET. One way is by using Response.Write(). Another way is by using ScriptManager and RegisterClientScriptBlock or RegisterStartupScript methods. You can also use jQuery's $.ajax() method to send asynchronous requests from the server and execute client-side JavaScript.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How can I set up my own javascript error handler?

1 Answers  


List different ways of empty an array in javascript?

1 Answers  


why we need java instead of c

1 Answers   TCS,


Is java is a fully object object oriented language?

2 Answers  


What are ‘settimeout()’?

1 Answers  


What is javascript hoisting?

1 Answers  


how to post the form without submit button with help of javascript

2 Answers  


print the following using loop. 54321 4321 321 21 1

2 Answers   Delhi Public School,


What are the characteristics of javascript ‘strict mode’?

1 Answers  


what is the difference between window & document in javascript?

1 Answers  


What does the "Access is Denied" IE error mean?

1 Answers  


Is javascript array dynamic?

1 Answers  


Categories