Category - Issues and Exceptions
Results 1 - 5 of 74
Here Mudassar Ahmed Khan has explained a simple tutorial on what is the AllowHtml attribute in ASP.Net MVC, what is its use and also examples explaining its usage.
AllowHtml attribute is used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained a simple tutorial on what is the ValidateInput(false) attribute in ASP.Net MVC, what is its use and also examples explaining its usage.
ValidateInput(false) attribute is used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, what is the difference between ValidateInput(false) v/s AllowHtml in ASP.Net MVC i.e. what is the difference between ValidateInput(false) and AllowHtml in ASP.Net MVC.
Both ValidateInput(false) and AllowHtml attributes are used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, how to solve the error exception occurring in ASP.Net MVC i.e. A potentially dangerous Request.Form value was detected from the client.
The error exception A potentially dangerous Request.Form value was detected from the client occurs someone tries to submit HTML or JavaScript code to server. Such exception comes since ASP.Net MVC has inbuilt mechanism to prevent XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem i.e. HttpPostedFileBase always returns NULL when used in Controller while uploading files in ASP.Net MVC.
The name of the HttpPostedFileBase parameter and the name of HTML FileUpload element must be exact same, otherwise the HttpPostedFileBase parameter will be NULL.
Results 1 - 5 of 74