473,569 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1449
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.microso ft.com" <da***@helixpoi nt.com> wrote in message
news:OV******** ********@TK2MSF TNGP14.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.ne t> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
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.microso ft.com" <da***@helixpoi nt.com> wrote in message
news:OV******** ********@TK2MSF TNGP14.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***@helixpoi nt.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Not much help Steve

--
Dave

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:%2******** **********@TK2M SFTNGP10.phx.gb l...
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.microso ft.com" <da***@helixpoi nt.com> wrote in message
news:OV******** ********@TK2MSF TNGP14.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 CausesValidatio n 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****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx

"msnews.microso ft.com" <da***@helixpoi nt.com> wrote in message
news:OV******** ********@TK2MSF TNGP14.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
3583
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 buttons as well as a body to load the content. It is exactly like a normal HTML page where there are banner, menu bar, and body to load content. In my case,...
0
1127
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 different user controls. This all works fine. If the user hits the navigation buttons very quickly (i.e. next, back, next). The page gets...
2
3246
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 which button is pushed. Well, the user simply wants to navigate to a different screen without filling out the form. So is there a way to tie...
8
579
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
9
2761
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 wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I...
5
20003
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 separate Submit buttons. In basic HTML, I can have multiple forms on a page and the browser knows that if any of the fields for Form A have the...
5
2443
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 made the postback request.???" for e.g. I have a webpage default.aspx. I place TWO or more server buttons on it. Create server-side event handlers...
6
1587
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 submit if neccessary. Very easy to do if it were plain HTML. No idea how to implement this in ASP.NET 2 though. Can someone please point me in the right...
9
3173
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 load with different data (locations, departments, etc.).
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8132
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.