Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 774925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:12:29+00:00 2026-05-14T19:12:29+00:00

I have a gridview, I am allowing user to enter HTML data while editing

  • 0

I have a gridview, I am allowing user to enter HTML data while editing a record in a gridview row. When I am clicking update button then I am getting this message

A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$gvCommentDetails$ctl02$ctl04=”This is message,
This is mark. …”).

Please let me know how could I resolve this , as I am using sql data source to update the gridview record.

=============

” SelectCommand=” SELECT c.Id,c.Name, c.message
FROM Table1 c
UpdateCommand=” UPDATE Table1
SET Name = @Name,
message = @message
WHERE Id= @Id”>

Thanks in adavance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:12:29+00:00Added an answer on May 14, 2026 at 7:12 pm

    Basically it means that you can’t post values containing HTML ( or script ) tags to the server.

    In other words – if you have a textbox and the visitor enters something

    This is message, [someHtmlTagGoesHere]

    or

    This is mark. …[someTagGoesHere]

    and then presses Submit button this error will occur since the posted value(s) contains HTML tags.

    To disable request validation on a page add the following directive to the existing “page” directive in the file (you will need to switch to the HTML view for this):
    ValidateRequest=”false”

    Hope this helps…

    s

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have GridView which I can select a row. I then have a button
I have GridView and I need HTML ENCODE all values being update using Event
I have gridview which has columns of data and a button below the Apply
I have a gridview and I have a button on it.I want, if the
I have GridView that allows select. It takes data from EntityDataSource . How do
Greetings, I have gridview with SelectedIndexChanged event. when I click on a record in
Greetings, In my current project, I have gridview, search button, text box for search,
i have a gridview i am working on VS2008 ASP.Net forms Currently, my update
I have a GridView on Android I populate with custom images. When the user
I have gridview which contains 60 rows and each row has 4 radiobutton option

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.