Re: Overloading security check on dropdown, is it possible??
- From: Stephen Davies <StephenDavies@xxxxxxxxxxxxx>
- Date: Fri, 7 Jul 2006 05:29:01 -0700
Create a Custom Control that inherits DropDownList and leave off the
[SupportsEventValidation]
attribute from the class.
Use that control rather than DropDownList and you will effectively disable
event validation for a single control on your page. Everything else will
function as normal.
--
Regards
Stephen Davies
"Søren M. Olesen" wrote:
.
Yeah, I know I can disable the EnableEventValidation, but the I'd have to
check everything myself, I'd prefer to only check the stuff I know could be
changed from JScript....
Regards,
Søren
"Dominick Baier [DevelopMentor]" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote in message news:4580be631a29db8c86f324258b970@xxxxxxxxxxxxxxxxxxxxx
Hi,
i guess you are getting an ArgumentException?
you can disable that check by setting EnableEventValidation=false on the
page - but then - you have to thoroughly verify every single postback.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi
I'm trying to populate a dropdown list on a page, with the result from
an
AJAX request, however, because my dropdown is runat="server" I get a
security error when posting back my page.
I guess that makes sence since a hacker could attemt to compromise the
webserver this way, however in my situation it's a bit of a
problem.....
Is there a way to make the security check my self, so that I can
determine whether the data is OK or not??
TIA
Søren
- Follow-Ups:
- Re: Overloading security check on dropdown, is it possible??
- From: Dominick Baier [DevelopMentor]
- Re: Overloading security check on dropdown, is it possible??
- References:
- Overloading security check on dropdown, is it possible??
- From: Søren M. Olesen
- Re: Overloading security check on dropdown, is it possible??
- From: Dominick Baier [DevelopMentor]
- Re: Overloading security check on dropdown, is it possible??
- From: Søren M. Olesen
- Overloading security check on dropdown, is it possible??
- Prev by Date: Re: Overloading security check on dropdown, is it possible??
- Next by Date: Re: Windows MSI
- Previous by thread: Re: Overloading security check on dropdown, is it possible??
- Next by thread: Re: Overloading security check on dropdown, is it possible??
- Index(es):
Relevant Pages
|
|