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

Multiple buttons validate different controls????

I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???

--
David
Nov 19 '05 #1
4 1440
ASP.NET 2.0 has Validation Groups, which solves this problem gracefully.
Until then the best solution is to roll your own validation.

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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"msnews.microsoft.com" <da***@helixpoint.com> wrote in message
news:OV****************@TK2MSFTNGP14.phx.gbl...
I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???

--
David

Nov 19 '05 #2
Not much help Steve

--
Dave

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
ASP.NET 2.0 has Validation Groups, which solves this problem gracefully.
Until then the best solution is to roll your own validation.

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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"msnews.microsoft.com" <da***@helixpoint.com> wrote in message
news:OV****************@TK2MSFTNGP14.phx.gbl...
I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???

--
David


Nov 19 '05 #3
Sure it is.

He is telling you there is no way to automatically do what you want right
now.

So you have to write all the validation yourself.

"Fetty" <da***@helixpoint.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Not much help Steve

--
Dave

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
ASP.NET 2.0 has Validation Groups, which solves this problem gracefully.
Until then the best solution is to roll your own validation.

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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"msnews.microsoft.com" <da***@helixpoint.com> wrote in message
news:OV****************@TK2MSFTNGP14.phx.gbl...
I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???

--
David



Nov 19 '05 #4
Until you switch to ASP.NET 2.0, here are your choices:

1. Handle validation manually on the server side.
- Set the button's CausesValidation property to false.
- In the Click post back method, call Validate() on each validator. Then
test each validator's IsValid property for true before saving.

2. I wrote a replacement to Microsoft's validators called Professional
Validation And More (http://www.peterblum.com/vam/home.aspx). It's 25
validators support validation groups right now. I wrote it to address the
numerous limitations I found with Microsoft's validators, such as
client-side validation isn't supported on Mozilla-based browsers. I also
identified numerous enhancements that can make validation better, like
setting focus to the field with the error or changing that field's color. I
have attempted to build a feature rich system that avoids most of the custom
coding and hacks users face with Microsoft's validators.

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

"msnews.microsoft.com" <da***@helixpoint.com> wrote in message
news:OV****************@TK2MSFTNGP14.phx.gbl...
I have 2 datagrids. Each with an add record in the footer. How can I just
validate the fields in that datagrid without validating the fields in the
2nd datagrid. Any examples???

--
David

Nov 19 '05 #5

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

Similar topics

3
by: rachel | last post by:
Hi all, I am new in ASP.Net. I have a question on link multiple web forms together. Here is the scenario: I create an Index.aspx WebForm which consists of a banner and three navigator...
0
by: joe | last post by:
Hi, I have an aspx page that reads a session variable and loads an appropriate set of user controls. It appears that the user is going to different pages when in reality it is the same page with...
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...
8
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
5
by: Alex Maghen | last post by:
In ASPX 2.0 with MasterPages and all that, my entire page only has one actual <FORM>. But there are several different sections of the page that provide what are functionally separate forms with...
5
by: mayur_hirpara | last post by:
Hi, I have been developing web applications for a while now. However, as I was thinking through the architecture I really don't understand the "How server can identify between which buttons has...
6
by: Willem | last post by:
I have got a very simple javascript which compares about 8 controls in pairs of two. i.e. maxA - minA <= 25. Now I would like it to be triggered for validation (before submit?) and cancel the...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...

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.