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

Validation happening for 2 datagrids

I have two datagrids on a page and each of them allow the user to add rows.
On each datagrid I have validation (required field, reg expressions etc) and
my problem is that I only want the validation to work on the datagrid which I
click add in. At the moment if I click add in one datagrid and haven;t
filled out anything on the other datagrid then the validation comes up. Does
any one know what I can do to combat this?
Jul 21 '05 #1
3 1265
Stephen,

This sounds strange in a normal validation process are you not changing
anything in your datagrid2 when you are editing on 1. So it maybe validate,
however there will be no error. So what is so special.

Cor
Jul 21 '05 #2
Basically all the validation (generated by .net e.g. required field
validators etc) is client side and it fires on the on-click event of a
button. My problem is that when I click add in datagrid1 then if the
textboxes in datagrid2 aren't filled in the validation kicks in even though I
don't want it too as Im not actually trying to add anything to datagrid2.

Im looking for some way to stop the validation for datagrid2 happening when
I click the add button in datagrid1 and vice-a-versa.

I've never came across this problem before because I never really have two
different submit buttons on the same page.

"Cor Ligthert" wrote:
Stephen,

This sounds strange in a normal validation process are you not changing
anything in your datagrid2 when you are editing on 1. So it maybe validate,
however there will be no error. So what is so special.

Cor

Jul 21 '05 #3
Stephen,

Now I can see that you are probably using ASPNET. With the clientside
validators of this is my expirience at least 2 years old.

Probably you have more change on an answer in this newsgroup.

Aspnet
news://msnews.microsoft.com/microsof...amework.aspnet

Web interface:
http://communities2.microsoft.com/co...amework.aspnet

I hope this helps a little bit?

Cor
Jul 21 '05 #4

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...
1
by: Stephen | last post by:
I have two datagrids on a page and each of them allow the user to add rows. On each datagrid I have validation (required field, reg expressions etc) and my problem is that I only want the...
2
by: jm | last post by:
I have an ASP .NET page with three DataGrids. On one of the datagrids there are several vaildators. On another grid there is a button that does something else (changes data in a database). The...
2
by: Sebastian | last post by:
Hi, I have datagrid. In its footer there is editbox to add new item. All is cool. Datagrids 'Delete' button has CausesValidation set to false and all is great. But the problem is in 'Process'...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
1
by: rmccinc | last post by:
OK, I am running into some issues that I cant figure out a work-around. I am not going to post code cause I figured out WHY my issue is happening: -I have a datagrid, and a button that fires a...
3
by: Stephen | last post by:
I have two datagrids on a page and each of them allow the user to add rows. On each datagrid I have validation (required field, reg expressions etc) and my problem is that I only want the...
2
by: lister | last post by:
I have lots of form validation going on. When something fails validation, I highlight the offending field and write an error message at the bottom of the form. This was fine until I was trying...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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...

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.