473,395 Members | 2,423 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,395 software developers and data experts.

Validators and multiple submit actions

How can I prevent the validators from working for one button and not
another. The scenario is a Master / Content where there is a Sign-in button
at the top of every page, and a submit button on a Join page.

PS: If you dont actually have the answer, PLEASE do not post a reply
May 7 '07 #1
4 1039
for .NET 2.0 button has a ValidationGroup property

George.
"Just Me" <news.microsoft.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
How can I prevent the validators from working for one button and not
another. The scenario is a Master / Content where there is a Sign-in
button at the top of every page, and a submit button on a Join page.

PS: If you dont actually have the answer, PLEASE do not post a reply

May 7 '07 #2
OK, I see the property but how to I bind it to a button
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:u7**************@TK2MSFTNGP06.phx.gbl...
for .NET 2.0 button has a ValidationGroup property

George.
"Just Me" <news.microsoft.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
>How can I prevent the validators from working for one button and not
another. The scenario is a Master / Content where there is a Sign-in
button at the top of every page, and a submit button on a Join page.

PS: If you dont actually have the answer, PLEASE do not post a reply


May 7 '07 #3
Cool, actually I just needed to set the Causes Validation to false for that
button, but this feature is way cool.

Thanks
"Just Me" <news.microsoft.comwrote in message
news:ui**************@TK2MSFTNGP06.phx.gbl...
OK, I see the property but how to I bind it to a button
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:u7**************@TK2MSFTNGP06.phx.gbl...
>for .NET 2.0 button has a ValidationGroup property

George.
"Just Me" <news.microsoft.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
>>How can I prevent the validators from working for one button and not
another. The scenario is a Master / Content where there is a Sign-in
button at the top of every page, and a submit button on a Join page.

PS: If you dont actually have the answer, PLEASE do not post a reply



May 7 '07 #4
In ASP.NET 2.0 you simply set the ValidationGroup property to enable certain
buttons to execute certain validators.
You can also use the CausesValidation property to cause some buttons to not
cause any validation at all.

Here's more info:
http://SteveOrr.net/articles/Validation.aspx
http://msdn.microsoft.com/library/de.../valgroups.asp

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Just Me" <news.microsoft.comwrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
How can I prevent the validators from working for one button and not
another. The scenario is a Master / Content where there is a Sign-in
button at the top of every page, and a submit button on a Join page.

PS: If you dont actually have the answer, PLEASE do not post a reply
May 7 '07 #5

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

Similar topics

2
by: Matt | last post by:
The ASP page has multiple buttons, and when the user clicks different buttons, it will submit the form data to different URLs. My first approach was to use BUTTON type, and triggers javascript...
1
by: Sophisticado | last post by:
Hi Newbie here. I am trying to have two form actions on submission using a javascript. The first calls a php class (http://www.blah.org/test.php) and the second adds data to a mySQL database...
8
by: ShaneFowlkes | last post by:
For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators...
2
by: Jordan S. | last post by:
I'm experimenting with dynamically inserting custom composite Web server controls onto a page. For testing purposes I have two custom composite Web server controls that each have a couple of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.