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 is a web api? Which protocol is used in a web api?
How do I publish my asp.net application to my isp's web server?
What is synchronous and Asynchronous post back ?
What are the authentication types in asp.net?
How to register exception filter globally?
How to comment out asp.net tags?
Web API supports which protocol?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
Why SessionID changes in every request in asp.net?
Explain how does asp page work?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
Is asp.net and .net same?
Can we create a multiple user simultaneously ?
Explain the overview of asp.net?
Distinguish between Server-side and Client-side code with its functionality?