473,385 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ValidateRequest

Hi,

I have a web form containing a TextBox that allows users to edit XML files.
When the page is posted, the changes are saved. This worked fine until the
ValidateRequest 'feature' came along in .Net 1.1

Now, I've been told that it can be disabled using the 'ValidateRequest'
attribute (of Page). This works on 1.1 and is fine since I always encode and
check my strings manually to ensure no malicious script can be submitted.

The problem is that our web app is distributed to various clients. When they
have 1.1 installed, everything's fine. But most of them are still on the 1.0
Framework. When they access that web form, they receive this error message :

The 'ValidateRequest' attribute is not supported by the 'page' directive.

Now, I've been looking everywhere on how to handle this. I can't believe I'm
the only one facing this problem. I just can't go and tell my clients to
add/remove this attribute in the .aspx source. What is the solution? Is
there a way to programmatically set the validateRequest attribute of a Page?
What I would like to do is check the version of the framework and add
validateRequest = False if I'm running on .Net 1.1... help!

Regards,
Shaun.
Nov 17 '05 #1
1 3207
Your not alone ... I have run into various problems with Caching, webcontrol
buttons and much more that simply don't work in the 1.0 framework and only
somewhat work now in 1.1. It is very frustrating and if you find a
solution, please also let me know.


"Shaun Dore" <sh*******@videotron.ca> wrote in message
news:zU*****************@charlie.risq.qc.ca...
Hi,

I have a web form containing a TextBox that allows users to edit XML files. When the page is posted, the changes are saved. This worked fine until the
ValidateRequest 'feature' came along in .Net 1.1

Now, I've been told that it can be disabled using the 'ValidateRequest'
attribute (of Page). This works on 1.1 and is fine since I always encode and check my strings manually to ensure no malicious script can be submitted.

The problem is that our web app is distributed to various clients. When they have 1.1 installed, everything's fine. But most of them are still on the 1.0 Framework. When they access that web form, they receive this error message :
The 'ValidateRequest' attribute is not supported by the 'page' directive.

Now, I've been looking everywhere on how to handle this. I can't believe I'm the only one facing this problem. I just can't go and tell my clients to
add/remove this attribute in the .aspx source. What is the solution? Is
there a way to programmatically set the validateRequest attribute of a Page? What I would like to do is check the version of the framework and add
validateRequest = False if I'm running on .Net 1.1... help!

Regards,
Shaun.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mar | last post by:
Does anybody know what configuration section should i set to false here. I also tried setting the page directive to false but that didn't fix it. Thanks! mc A potentially dangerous...
1
by: Benny | last post by:
Hello Experts, If the contents of a text box containing a html tag like formmated characters, i.e. <hello>, and if the validateRequest is set to true, it gives an error when post back: A...
4
by: Ray Williams | last post by:
I have a specific page that I have chosen to disable the .NET 1.1 validateRequest options by setting the page directive attribute of "validateRequest" from true to false. I manually validate all...
2
by: Tim Zych | last post by:
I'm trying to stop .Net from validating data entered into a textbox. When I enter < or > .Net returns an error: potentially dangerous Request.Form value was detected from the client... so a...
8
by: Max Metral | last post by:
Ok, I have a global page class derived from System.Web.UI.Page, let's call it BasePage. I have another class derived from that called MemberPage. It checks the Form collection if it's a post for...
2
by: Andy Fish | last post by:
Hi, I have one textbox on the form that needs to have ValidateRequest disabled, but it seems that it can only be enabled/disabled at a page level. assuming I have to disable it at for the...
3
by: Umut Tezduyar | last post by:
I couln't find the code begind property on the Page object that represents the "ValidateRequest" attribute on the @Page element. There must be some property that the PageParser knows what to do...
4
by: Dave H | last post by:
If put this into my Web.config. Shouldn't this turn off the ValiateRequest app wide? <configuration> <system.web> <pages buffer="true" validateRequest="false" /> I pass SQL around to...
2
by: \A_Michigan_User\ | last post by:
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site).... How would I trap/detect that a textBox contains some illegal characters? (I'm using asp.net v1.1 and vb.net)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.