0

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..."). "

3
Contributors
8
Replies
11
Views
7 Years
Discussion Span
Last Post by jellybeannn
0

Hi ious,

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

0

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

Edited by ious: n/a

0
<%@ 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.

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.