Hi, I'm making a CMS, and I have a description TextBox which I would like to include html tags, to save to a database, but I get an error "A potentially dangerous Request.Form value was detected from the client (ctl00$adminPlaceHolder$grid$ctl02$descriptionTextBox="<b>Model No.:</b><br..."). "

Thank you, I will check it out.

you could use ValidateRequest= false

Hi ious,

I tried:
<page validateRequest = "false" />
in web.config it works on the localhost, but not on the server.

that's wierd, i've never had any problems with that locally or on server

just to make sure you something like that?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="yourPage.aspx.cs" Inherits="whatever" ValidateRequest="false" %>

edited: you need to have it in your aspx page, not the web.config

<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" 
CodeFile="AdminCategories.aspx.cs" Inherits="AdminCategories" ValidateRequest="false"  Title="Admin : Categories" %>

Is this correct? Cause it only works on the localhost, not on the server.

i tried a few things and i have no problems locally or on server. My best guess would be some restrictions from the server... kinda far fetched but i don't see any other options

Ok I will have a check with the server thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.