Is it possible to mix the concept of Unobtrusive JavaScript with the event model of ASP.Net?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ASP.NET makes it very difficult, as every server side control requires a postback via the
__doPostbackjavascript function.You can make sure you are not using any server side controls, but this means you loose most of the benefits of ASP.NET.
Another option is to override the
OnRenderevent and output different controls/javascript, but this is also quite a lot of work and defeats the purpose of ASP.NET.You have much greater control when using ASP.NET-MVC.