ValidateRequest

S

Shaun Dore

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.
 
M

michael

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top