Posted by Sujit Kumar on November 14, 2008
This error occurs when we try to post html code from code behind.
The reason behind it server always validate the posted data, if it find that its an HTML code, error will occues like ‘A potentially dangerous Request.Form value…’.
if you want to send html data then you hvae to write {validateRequest=”false”} in page directive
ex:
AutoEventWireup=”true” ValidateRequest=”false”
Posted in .NET | Tagged: A potentially dangerous Request, asp.net | Leave a Comment »
Posted by Sujit Kumar on November 1, 2008
You can pass single/multiple query string using HyperLInkField
Pass data field name in DataNavigateUrlFields which you wnat to pass value in query string
ex:
DataNavigateUrlFields=”subject,query”
here subject and query both are differenct data field those are comming from database.
and write the page name in DataNavigateUrlFormatString where you want to pass query string value.
ex:
DataNavigateUrlFormatString = “~/Pages/default.aspx?UserName={0}&GameTitle={1}”
asp:HyperLinkField HeaderText=”View Details” DataNavigateUrlFields=”subject,query” DataNavigateUrlFormatString = “~/Pages/default.aspx?UserName={0}&GameTitle={1}” Text=”View”
Posted in .NET | Tagged: pass multiple query string using HyperLinkField in Gridview | 1 Comment »