April 19, 2006 at 5:47 pm
Hi all
I am new and trying to insert a hyperlink into a column in a table but get the following error.
Any idea what I am doing wrong?:
A potentially dangerous Request.Form value was detected from the client (DetailsView1$ctl02="<A href=http://www....).
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\e2hotdeals\ebabed00\31f11669\App_Web_3vkaihfu.16.cs Line: 0
[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (DetailsView1$ctl02="<A href="http://www....").]
System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +287
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +107
System.Web.HttpRequest.get_Form() +109
System.Web.HttpRequest.get_HasForm() +59
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +46
System.Web.UI.Page.DeterminePostBackMode() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7992
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +158
System.Web.UI.Page.ProcessRequest() +85
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +20
System.Web.UI.Page.ProcessRequest(HttpContext context) +110
ASP.default3_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\e2hotdeals\ebabed00\31f11669\App_Web_3vkaihfu.16.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +317
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65
Thanks
April 19, 2006 at 8:21 pm
That appears to be a .NET and not a SQL error. I suspect you may need to insert it as <"http://...
April 21, 2006 at 5:27 am
Try this in your SQL query that returns the value -
'<a href=' + Char(39) + 'existingorder.aspx' + Char(39) + '>View</a>' AS 'View Order'
Also if you are using a gridview you will need to set the column's HtmlEncode to False
MISfIT
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply