problematic data in sqldatasource

I am using VS2005 ASP.NET 2.0 SQL Server 2000.
In my database I have a record that contain a text field that contains the value: "  Our Reference: <<ID>>/<<CODE>>"
When I load this record to my gridview through the sqldatasource I get it OK but when I want to update the record or insert a new line I get the following error:
A potentially dangerous Request.Form value was detected from the client (GVEmailTemplates$ctl02$BODYselect="...ference: <<ID>>/<<CODE>>
How can I manage a problematic data?
ANAT2403Asked:
Who is Participating?
 
lijunguoCommented:
you may add
ValidateRequest="false"
to your aspx page in the page directive.
like the following example.

<%@ Page Language="VB"  ValidateRequest="false" AutoEventWireup="false" CodeFile="codefile.vb" Inherits="code" %>


0
 
ANAT2403Author Commented:
excellent, wonderful,  This question was deleted today after 3 weeks that nobody looked at it and I tried again and
you solved it. I have no words to thank you.
Can you please take a look at the following problem that nobody manage to solve?

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/Q_21799079.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.