From poking around a bit with Reflector, it looks as if there is no
property on the Page class. This might explain why it does not show up
in the properties window for a Page either.
It looks as if the PageCompiler reads the ASPX file and inspects the
setting for ValidateRequest. If it find the value is true, it
automatically injects a call to Request.ValidateInput during the
FrameworkInitialize method of the code gen'ed Page (which I assume
happens before OnInit event).
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 12 Nov 2004 22:37:32 +0200, "Umut Tezduyar"
<ut*******@onmap.com.tr> wrote:
No. CausesValidation is not a method for Control. It is only a method for
some special controls like Button, LinkButton. Also CausesValidation only
validates validators in the page. My problem is a bit different. But thanks
for your reply.
"Lerp" <ad***@officience.ca> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi there
Sounds like you are seeking the CausesValidation property of your control.
Setting it to false should do the trick.
Cheers, Lerp
"Umut Tezduyar" <ut*******@onmap.com.tr> wrote in message
news:u$**************@TK2MSFTNGP15.phx.gbl... 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 when
when
parsing ValidateRequest. I couldn't find any information about this.
Besides, it seems only can be declared on the html, and .config.
What if i am a control author and want to disable ValidateRequest for
some controls. For example, i dont want to be validated, a textbox that i
have added to the page.