problematic data in sqldatasource

Posted on 2006-04-06
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

    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

    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now