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
How to bind all the binding controls in a page at once in ASP.NET?
What are the components of ado.net?
How would ASP and ASP.NET applications run at the same time on the same server?
What is user control in asp.net?
Explain the purpose of storyboard.targetproperty.
How would you enable impersonation in the web.config file?
What is cookieless session id explain in brief?
What are the various types of cookies in asp.net?
What are the validation controls available in ASP.NET?
What are the asp.net 2.0 features?
What is routing in MVC?
Where you store Connection string in "Web.Config" file in ASP.NET?
Apart from IDE what are the enhancements in asp.net 2.0?
What is the life cycle of web page?
What is session authentication?