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

Validation when multiple buttons

dw
Hello. I have a page with two text fields, and a button for each. Each text
field needs to be validated when its button is clicked. I don't want the
second text field validated when the first button is clicked, and vice
versa. Is this possible? Thanks :)
Nov 18 '05 #1
6 1219
It is not easy with the current version of ASP.NET.

This will do it for you though...

http://www.peterblum.com/VAM/Home.aspx

HTH,
Greg
"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello. I have a page with two text fields, and a button for each. Each
text
field needs to be validated when its button is clicked. I don't want the
second text field validated when the first button is clicked, and vice
versa. Is this possible? Thanks :)

Nov 18 '05 #2
dw
Thanks, Greg. Is there a free version of something similar to this, b/c this
one is at least $50. Thank you.
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
It is not easy with the current version of ASP.NET.

This will do it for you though...

http://www.peterblum.com/VAM/Home.aspx

HTH,
Greg
"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello. I have a page with two text fields, and a button for each. Each
text
field needs to be validated when its button is clicked. I don't want the
second text field validated when the first button is clicked, and vice
versa. Is this possible? Thanks :)


Nov 18 '05 #3
Not that I know of.

I think I've read that ASP.NET 2.0 has this built in. Maybe download the
free beta and use it?

Greg
"dw" <co***************@uncw.edu> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
Thanks, Greg. Is there a free version of something similar to this, b/c
this
one is at least $50. Thank you.
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
It is not easy with the current version of ASP.NET.

This will do it for you though...

http://www.peterblum.com/VAM/Home.aspx

HTH,
Greg
"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> Hello. I have a page with two text fields, and a button for each. Each
> text
> field needs to be validated when its button is clicked. I don't want
> the
> second text field validated when the first button is clicked, and vice
> versa. Is this possible? Thanks :)
>
>



Nov 18 '05 #4
you can always use classic ASP validation, which is .. add onclick event
handlers to each button with different validation functions

HTH

"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello. I have a page with two text fields, and a button for each. Each text field needs to be validated when its button is clicked. I don't want the
second text field validated when the first button is clicked, and vice
versa. Is this possible? Thanks :)

Nov 18 '05 #5
dw
Thanks, Konrad.

"Konrad Rotuski" <konrad@_SPAM_KILLER_eracent.com> wrote in message
news:eQ**************@TK2MSFTNGP14.phx.gbl...
you can always use classic ASP validation, which is .. add onclick event
handlers to each button with different validation functions

HTH

"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello. I have a page with two text fields, and a button for each. Each

text
field needs to be validated when its button is clicked. I don't want the
second text field validated when the first button is clicked, and vice
versa. Is this possible? Thanks :)


Nov 18 '05 #6
Hi DW
I've developed a set of validator controls that allow you to group them into
logical forms.

e.g.
<extendedvalidators:RequiredFieldValidator id="RequiredFieldValidator2"
runat="server" ErrorMessage="type something" ControlToValidate="TextBox1"
group="1"></extendedvalidators:RequiredFieldValidator>

In the future I'd like to sell them (after a bit more testing)...
If you like to try them mail me at jo**********@hotmail.com and I'll send
you the dll, let me know if you are using visual studio version 2002 or 2003
CheersJoe GassMCSD.net

"dw" <co***************@uncw.edu> wrote in message
news:O%****************@TK2MSFTNGP14.phx.gbl...
Thanks, Konrad.

"Konrad Rotuski" <konrad@_SPAM_KILLER_eracent.com> wrote in message
news:eQ**************@TK2MSFTNGP14.phx.gbl...
you can always use classic ASP validation, which is .. add onclick event
handlers to each button with different validation functions

HTH

"dw" <co***************@uncw.edu> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> Hello. I have a page with two text fields, and a button for each. Each

text
> field needs to be validated when its button is clicked. I don't want
> the
> second text field validated when the first button is clicked, and vice
> versa. Is this possible? Thanks :)
>
>



Nov 18 '05 #7

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

Similar topics

0
by: Richard Payne | last post by:
I am developing a web application that utilises multiple grids, panels, validation controls etc on the same page. I have added the appropriate code to pop up dialogs to confirm delete in...
2
by: sandyde2 | last post by:
Hi all, I get the tough problem and expect to get help.. In a html page, I dynamically created many forms which named as NO+business_id. In each form there are two submit buttons to...
1
by: Griff | last post by:
Hi! I'm using JavaScript on an HTML page for form validation. I have a form value (theForm.ProdType1) which represents a picklist from which users may make multiple selections; essentially,...
0
by: George Jordanov Ivanov | last post by:
Hi there, I have a problem related with validation of a container control, containing other container controls. Scenario: I have a dialog based Windows form, containing a group control (which...
2
by: D | last post by:
Most of my web forms have multiple buttons (Proceed, Back, link buttons for various screens, etc.) It looks like, say a required field validator for example, gives me an error message no matter...
7
by: A.M | last post by:
Hi, I have a validation control in my page that upon any invalid data, it disables all buttons in the page. basicly i don't have any postback in the page if the validator finds any error. How...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
5
by: M | last post by:
Hi, it's possible to append a custom action to a client-side verification of a validation control ? I have a validator summary control that shows (automatically) a message box if the validation...
0
by: koen | last post by:
Hi! In asp.net (version 1.1) I run into a problem when trying to perform client validation. The error I get on the client-side is : "Error: expected ';'". This problem occurs when I place a...
2
by: Gobind | last post by:
Hello I have been working on this for quite some time now, and have no clue why my app behaves the way it does. Here is the code snippet that controls this behaviour....
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.