Skip to content Skip to footer

ASP.NET MVC

ASP.NET MVC

aspnet

JavaScript and Ajax Improvements in ASP.NET MVC3

We have couple of enhancements in terms of JavaScript and Ajax in ASP.NET MVC3. By default, Ajax & Validation helpers in ASP.NET MVC 3 use an unobtrusive JavaScript approach Validation helpers uses jQuery validation plugin for client side validations By default, Client Side validation is enabled What is Unobtrusive JavaScript?Unobtrusive JavaScript avoids injecting inline JavaScript…

Read more

aspnet

How to allow user to input html in ASP.NET MVC?

Whenever we submit HTML or JavaScript as input in ASP.NET MVC application we get an exception like “A potentially dangerous Request.Form value was detected from the client (……)”. Because ASP.NET MVC has built-in request validation that helps you automatically protect against cross-site scripting (XSS) attacks and HTML injection attacks, it will prevent the user from…

Read more