473,386 Members | 1,821 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,386 software developers and data experts.

What is the code behind property for the @Page element's ValidateRequest

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.
Nov 18 '05 #1
3 2084
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.

Nov 18 '05 #2
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.


Nov 18 '05 #3
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.



Nov 18 '05 #4

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

Similar topics

0
by: dotnet | last post by:
I am trying to make a page that is changing the page schema(colors and graphics) depends on the specific value (for example, test.aspx?page=1) I have so far achieved accepting page values (with...
13
by: R Reyes | last post by:
is there a way to avoid the validateRequest error page in my code behind file? i can't seem to find a way to handle the error w/o an error code or exception being thrown... i am NOT looking for...
6
by: Beat | last post by:
Is it possible to reference the same codebehind from 2 different pages? It would be an elegant solution, where we do need different settings at the PAGE-Level for 2 user-Groups but the rest of...
1
by: | last post by:
Hi guys! I am a beginner with aspx (i have some background with .asp). And i am trying tu use a 'code-behind' page in order to execute all transactions in that page and leave as clean as possible...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
4
by: David Jones | last post by:
I have some code repeated in many page_load methods in an ASP.NET app. I have buttons that are enabled or disbaled depending upon the state of a variable in the session. Is there a way to put that...
2
by: Roland Müller | last post by:
Hello Ng, i have a simple problem: there is a property in the code behind of a webpage public string Hyperlink { get { return "test"; } }
2
by: a | last post by:
is it possible to have page functions both in code behind AND on in the html? i.e. i added the following script to the html but nothing happens: <script runat=server language=C#> private...
0
by: Mike Gaab | last post by:
Hi, Is it safe to use a reference, the id, from a declared control in an aspx page in the code-behind's page load event handler? When does the control that is declared in the aspx page get...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.