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

Set more than one ValidationGroup to a Button?

ASP.NET 2.0

Is it possible to set more than one ValidationGroup to a Button?

I have two sets of controls on a Web page, into two different
ValidationGroups. I would like when the user clicks on a specific button,
that both groups be validated.

Thanks.
Michael
Mar 3 '06 #1
2 2807
I don't see any way of this directly using the .NET 2.0 Framework. I'm
sure, given the time, you could come up with a custom Button object and
custom Validation object that could handle it.

Another option could be to use the CustomValidator object. It provides with
both server and client validation functionality, but I'm not how complex it
might be with your validation needs. It's at least worth a look.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"news.microsoft.com" <so*****@somewhere.com> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
ASP.NET 2.0

Is it possible to set more than one ValidationGroup to a Button?

I have two sets of controls on a Web page, into two different
ValidationGroups. I would like when the user clicks on a specific button,
that both groups be validated.

Thanks.
Michael

Mar 3 '06 #2
With validation groups in ASP.NET 2.0, you can only match a button to one
group name.

Just so you know that the option exists, my replacement for the Microsoft
validators, "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) offers validation groups with the
extensions that you need. You can use "*" in the button's Group property to
fire all validation groups. Similarly, the ValidationSummary can have a
group name of "*" to show all validators on the page, if you like.

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

"news.microsoft.com" <so*****@somewhere.com> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
ASP.NET 2.0

Is it possible to set more than one ValidationGroup to a Button?

I have two sets of controls on a Web page, into two different
ValidationGroups. I would like when the user clicks on a specific button,
that both groups be validated.

Thanks.
Michael

Mar 3 '06 #3

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

Similar topics

6
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've...
3
by: Tom Asken | last post by:
Short version: IE 6.0 wrongly posts <button ..> value. Internet Explorer should only post the value of the clicked submit button - but IE 6 posts the value of several submit buttons if they have...
33
by: Joerg Schuster | last post by:
Hello, Python regular expressions must not have more than 100 capturing groups. The source code responsible for this reads as follows: # XXX: <fl> get rid of this limitation! if...
13
by: HockeyFan | last post by:
I'm not sure how to exactly ask this, but expect that it's a Javascript solution. However, I'll ask the question and maybe someone can point me to some existing code that will do what I need. I...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello misters, I have an application web in asp.net 2.0. I use ASP.NET AJAX and AjaxControlToolkit. I have several tabs in an aspx page, and I try validate controls. I include ValidationGroup...
1
by: fredd00 | last post by:
Hi I'm wondering in which class or interface the validationgroup property originates. i have created a web user control that uses the validation group property on textboxes, dropdownlist,...
0
by: pompeymike | last post by:
Hi, I have a form with panels, within which is a Formview. In the InsertItemTemplate for the FormView I have validation using RequireFieldValidators. These all work correctly, but if I use a...
0
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have an aspx page w/2 update panel controls UpdatePanel1 & UpdatePanel2. UpdatePanel1 uses validationgroup="a" for all of it's validation controls & button controls. UpdatePanel2 uses...
1
by: KUTTAN | last post by:
I have 2 divisions in a .aspx file Left division for sing up and Right division for login
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.