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

Validating Page Dynamically

I would like to use validation controls when certain events are fired
and turn the validation off when other events are fired. I have sent
the page attribute for validateRequest="false", and used the
Page.Validate and Page.IsValid in the events that I want to use the
validation, but the validation always occurs. I am using version 1.14
Thanks
Troutbum

Nov 19 '05 #1
2 1481
Where exactly is your problem?
Maybe you can put down some code that is not working?
R. Thomas

"ma**********@bissell.com" wrote:
I would like to use validation controls when certain events are fired
and turn the validation off when other events are fired. I have sent
the page attribute for validateRequest="false", and used the
Page.Validate and Page.IsValid in the events that I want to use the
validation, but the validation always occurs. I am using version 1.14
Thanks
Troutbum

Nov 19 '05 #2
The validateRequest property is unrelated to the Page.Validate() method.
validateRequest=false turns off a feature that scans all inputs for HTML
tags that could be a Cross-site-scripting attack from a hacker.

Page.Validate() fires validation on the Validator controls of the page and
sets Page.IsValid.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

<ma**********@bissell.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I would like to use validation controls when certain events are fired
and turn the validation off when other events are fired. I have sent
the page attribute for validateRequest="false", and used the
Page.Validate and Page.IsValid in the events that I want to use the
validation, but the validation always occurs. I am using version 1.14
Thanks
Troutbum

Nov 19 '05 #3

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

Similar topics

4
by: EmmettPower | last post by:
Hi, I have a form which includes a field 'number'. When 'number' is changed additional fields ('item_0', etc) are generated on the form using 'onchange'. I want to validate the form using...
1
by: David Foster | last post by:
Hello, I have a question regarding validation of a control that I'm creating in an event handler (the control is not part of the static HTML page). I'm creating a text box and adding it to a...
4
by: bremdevnet | last post by:
I have a ASPX page that loads a custom control. This first custom control is made up of 2 textboxes and a Submit button. The user enters data into the form, presses the Submit button and the ASPX...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
6
by: Blinky | last post by:
Hi all, I have a dynamically generated page that can have 1 or more radio buttons. I am using javascript with onsubmit in the form statement to make sure a radio button is selected before...
5
by: Steve Bugden | last post by:
Hello, I am trying to create a form dynamically. A very simple form with a textbox, requiredvalidator and button. Everything works fine on IE, but no server side validation occurs which means...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
5
by: satyabhaskar | last post by:
hi all, In my web page i have created radio buttons dynamically on to the page .....following is my code string Course, Semester, Section; int rowsCount; string con =...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.