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
Why should i prefer JSP over asp.net or any other web development language..??
Explain the difference between inline and code behind - which is best in?
Explain how can we access static variable?
Can we use a static function with a non-static variable?
What is http pipeline in asp.net?
What is difference between datalist and gridview?
Who can consume WebAPI?
What do you mean by serialize?
What is the use of service provider?
What is asp.net with mvc? : Asp.Net MVC
What is web router?
Can we handle the error and redirect to some pages using web.config?
What does mvc represent in asp.net? : asp.net mvc
How to find out what version of asp.net I am using on my machine?
How can u debug your .net application?