By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,246 Members | 2,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,246 IT Pros & Developers. It's quick & easy.

datagrid validation

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.