Category - Issues and Exceptions
Results 21 - 25 of 92
05 Dec 2016 05 Dec 2016 0 Comments  7637 Views
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.
05 Dec 2016 05 Dec 2016 0 Comments  26311 Views
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.
17 Aug 2016 17 Aug 2016 2 Comments  22268 Views
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.
22 Jun 2016 22 Jun 2016 1 Comments  22476 Views
Here Mudassar Ahmed Khan has provided solution to the error (exception): - Multiple controls with the same ID were found. FindControl requires that controls have unique IDs.
The above error occurs while creating dynamic controls in ASP.Net using C# and VB.Net.
01 Jun 2016 01 Jun 2016 0 Comments  23012 Views
Here Mudassar Ahmed Khan has provided solution to a problem where the selected value of the jQuery DatePicker TextBox is lost after PostBack in ASP.Net using C# and VB.Net.
The TextBox used along with the jQuery DatePicker is set as ReadOnly and hence it does not retain the value set on Client Side using jQuery DatePicker.
Results 21 - 25 of 92