Can we use the java script code in .Net Code behind?
Answer Posted / zikku
yes we can use javascript in code behind.
Define the script block that contains the JavaScript
function. You can add this directly to the HTML of the page.
Insert the script block by the
Page.RegisterStartupScript() or the
Page.RegisterClientScriptBlock() method.
or by using updatepanel by raising an async postback using
JavaScript code
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What are the events that happen when a client requests an asp.net page from iis server?
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
What is postback and autopostback in asp.net?
Explain what is an abstract class?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
What is difference between URL and URI?
Explain what is postback in asp. Net?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What is the purpose of asp.net?
What is server side routing?
What is jade template engine?
What is server redirect?
What is rending process in ASP.NET?
What is a session http?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?