CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 11/6/2003 3:13:16 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 48 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Soderberg
Asp.Net User
Setting validateRequest="false" for an indivual Web User Control11/6/2003 3:13:16 AM

0/0

I have created a Web User Control for use in DotNetNuke. It has a couple text boxes that capture HTML from the user. However, when the user submits the form I get the "A potentially dangerous Request.Form value was detected from the client...." error.

This can be resolved by adding the page directive validateRequest="false" on a given page or it can be handled in Web.Config for a whole application. Neither of these work for me, as they both expose too much of my app to potential scripting attacks.

Does anyone know of a way I can allow the HTML in the text boxes to be passed through without triggering the error?

Andy Smith
Asp.Net User
Re: Setting validateRequest="false" for an indivual Web User Control11/6/2003 8:45:38 PM

0/0

request validation can't be turned off at the control level.
However, I was just thinking that if you can require script support, you could probably hook the form's submit event and htmlencode the value to be sent. then the serverside code could htmldecode it before using it.
hlaford
Asp.Net User
Re: Setting validateRequest="false" for an indivual Web User Control11/10/2003 9:32:36 PM

0/0

maybe asp.net 2.0 could provide the capability to disable request validation per registered postback control. then a single control could inform the server that it is built to validate and handle such data.
3 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:



 
All Times Are GMT