Home » Archive

Articles in the ASP.NET Category

ASP.NET »

[9 Apr 2009 | Comments Off on ASP.NET Error: A potentially dangerous Request.Form value was detected from the client]

Scenario:
I got this error saying “A potentially dangerous Request.Form value was detected from the client” when I put html tags like “<p><br/><strong><a href=””></a>” in my form fields (textbox, textarea).
Cause:

ASP.NET »

[18 Feb 2009 | Comments Off on ASP.NET Error : An HtmlSelect cannot have multiple items selected when Multiple is false.]

This error might occur if you have selected your selection list (dropdownlist) multiple times. You can add multiple=”true”, e.g. <select Multiple=”true”> in your selection list so as to enable multiple item select.
If you don’t want your selection list to be multiple select enabled then you have to check whether you have selected the selection list multiple times either in your design (aspx file) or in code (aspx.cs file).

ASP.NET »

[5 Oct 2007 | Comments Off on Page.IsPostBack property: A solution to the client postback problem]

Problem

There is a .aspx page with some textbox and a submit button.
User enters text in the textbox and clicks the submit button.