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

form validitor execution

Hi,

I have a web form with a bunch of textboxes, drop down lists, etc.

The form also has 5 command server side buttons.
When ever a user clicks on a button it fires off the form validators.

Depending on the current state of the form and the button that is pushed, I
am using server side code to stop the validators from stopping execution.

Without using server side code or client side javascript, are there advanced
forms validators that can be linked to specific command buttons?

thanks

Chris
Nov 19 '05 #1
2 972
ASP.NET 2.0 has new features such as Validation Groups that give you finer
granularity over what gets validated under what circumstances.

Here's more info:
http://SteveOrr.net/articles/Validation.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
Hi,

I have a web form with a bunch of textboxes, drop down lists, etc.

The form also has 5 command server side buttons.
When ever a user clicks on a button it fires off the form validators.

Depending on the current state of the form and the button that is pushed,
I
am using server side code to stop the validators from stopping execution.

Without using server side code or client side javascript, are there
advanced
forms validators that can be linked to specific command buttons?

thanks

Chris

Nov 19 '05 #2
The Validation Groups feature is the best way to handle this. My replacement
to ASP.NET's validators, Professional Validation And More
(http://www.peterblum.com/vam/home.aspx) also provides Validation Groups
support and it works with ASP.NET 1.x.

There is no client-side solution for ASP.NET 1.x other than that. The only
solutions are painful hacks or using server side code.

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

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
Hi,

I have a web form with a bunch of textboxes, drop down lists, etc.

The form also has 5 command server side buttons.
When ever a user clicks on a button it fires off the form validators.

Depending on the current state of the form and the button that is pushed,
I
am using server side code to stop the validators from stopping execution.

Without using server side code or client side javascript, are there
advanced
forms validators that can be linked to specific command buttons?

thanks

Chris

Nov 19 '05 #3

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

Similar topics

4
by: KS | last post by:
I have a button on a form that starts another form with this click-event code: Dim frmH As frmHelp If IsNothing(frmH) OrElse frmH.IsDisposed Then frmH = New frmHelp() Me.Opacity = 0.9...
4
by: Chris | last post by:
Hi, I followed the the aricle http://support.microsoft.com/default.aspx?scid=kb;en-us;321525 and was able to execute a dts package in vb.net. I replaced all the "Console.WriteLine" with "msgbox"....
29
by: Mic | last post by:
Goal: delay execution of form submit Code (Javascript + JScript ASP): <% Response.Write("<OBJECT ID='IntraLaunch' STYLE='display : none' WIDTH=0 HEIGHT=0...
8
by: Sergio Otoya | last post by:
Hi all, I need to add an input hidden field to an existing form (post). I have tried a couple things like adding the '<INPUT type=hidden name=idSelectedURL value=http://server/documents>' to...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
6
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in...
4
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
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: 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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...

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.