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

datagrid validation

Hey all,

I've got an asp.net page that has a textbox on it. The textbox has a
requiredfieldvalidation associated with it.

I've also got a datagrid with the edit,update,cancel links on it. When I run
my app, and select the update link on the datagrid my textbox validation
fires. Not sure why?

Note: if i close the application and restart it it works fine. no error.
all i'm doing to get this error is I add a record to my listbox. I select
that new record and it brings up the datagrid. Then that's where I edit then
update then get the error. But again, if i restart my application and goto
that new record the update works just fine. Any ideas? (also i've got causes
validation set to false as needed).

thanks,
rodchar
Nov 18 '05 #1
2 1484
validation fires on each submit
you must set CausesValidation property to false
on buttons and linkbuttons you press
to avoid firing validation events
"rodchar" wrote:
Hey all,

I've got an asp.net page that has a textbox on it. The textbox has a
requiredfieldvalidation associated with it.

I've also got a datagrid with the edit,update,cancel links on it. When I run
my app, and select the update link on the datagrid my textbox validation
fires. Not sure why?

Note: if i close the application and restart it it works fine. no error.
all i'm doing to get this error is I add a record to my listbox. I select
that new record and it brings up the datagrid. Then that's where I edit then
update then get the error. But again, if i restart my application and goto
that new record the update works just fine. Any ideas? (also i've got causes
validation set to false as needed).

thanks,
rodchar

Nov 18 '05 #2
thank you. this helps.

"Ivan K." wrote:
validation fires on each submit
you must set CausesValidation property to false
on buttons and linkbuttons you press
to avoid firing validation events
"rodchar" wrote:
Hey all,

I've got an asp.net page that has a textbox on it. The textbox has a
requiredfieldvalidation associated with it.

I've also got a datagrid with the edit,update,cancel links on it. When I run
my app, and select the update link on the datagrid my textbox validation
fires. Not sure why?

Note: if i close the application and restart it it works fine. no error.
all i'm doing to get this error is I add a record to my listbox. I select
that new record and it brings up the datagrid. Then that's where I edit then
update then get the error. But again, if i restart my application and goto
that new record the update works just fine. Any ideas? (also i've got causes
validation set to false as needed).

thanks,
rodchar

Nov 18 '05 #3

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

Similar topics

0
by: ED M. | last post by:
Hello all...I'm new to the board. I have a problem that I hope someone here might be able to solve for me. I am doing some clientside validation using Javascript. The text I am testing is...
1
by: GregM | last post by:
I have a read only datagrid that is designed to coordinate itself with textboxes. When the user clicks on a row in the datagrid, detailed data for that row is displayed for editing in the...
1
by: Stephan Bour | last post by:
Hi, I need to validate a text box in a datagrid nested inside a datalist. All I need is to validate that any text is entered in the textbox. However, a requiredfieldvalidator would not do because...
3
by: Ben | last post by:
Hi, I have a page with a datagrid that you have to scroll to see. I'm using the StrengthControls SmartScroller as recommended to maintain my scroll position. Anyway, inside the datagrid I have...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: siaj | last post by:
Hello All, If some one has faced a similar issue.. My datagrid Update command is not getting fired in fact it seems that the no event fires on clicking the update link. Although the cancel and the...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
1
by: Kris | last post by:
Hi, I have a DataGrid where in each row has couple of text boxes and an update button. Each row is dynamically generated as the number of rows are not known ahead of time. When the user clicks the...
5
by: Tina | last post by:
the Edit, Update, Cancel, and Delete buttons in my datagrid are causing validation elsewhere on the page. I want to specify that these buttons should not cause validation but they have no design...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.