problematic data in sqldatasource

Posted on 2006-04-06
Medium Priority
Last Modified: 2008-03-17
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?
Question by:ANAT2403
LVL 11

Accepted Solution

lijunguo earned 2000 total points
ID: 16390162
you may add
to your aspx page in the page directive.
like the following example.

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


Author Comment

ID: 16390569
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?


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question