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

Dategrid PushButton Validation

P: n/a
Hi
I have a ASP.Net page that has a few fields to submit to a database and a
datagrid to edit the entries. I have validation controls to make sure the
user enters the right info on the first few fields.

In the datagrid, I have it set up dynamic so they can edit the dtabase
records from the database. They click edit and they can edit a few fields and
then press either update or cancel.

The problem I have now is that when the user presses the update button, it
fires the validation controls. How can I turn off the validation for only the
update button in the datagrid?

Thanks,

Jerel
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Jerel,

Page and Control validation cannot be controlif it's set to object level.
You need to write a Custom Validation control which fires other then onclick
event
of Update Button.

Second Option is to set the DataRow of the Datgrid to NonError. This does
not validate the data and updates.

Thanks,
Ashish

"Hi" wrote:
I have a ASP.Net page that has a few fields to submit to a database and a
datagrid to edit the entries. I have validation controls to make sure the
user enters the right info on the first few fields.

In the datagrid, I have it set up dynamic so they can edit the dtabase
records from the database. They click edit and they can edit a few fields and
then press either update or cancel.

The problem I have now is that when the user presses the update button, it
fires the validation controls. How can I turn off the validation for only the
update button in the datagrid?

Thanks,

Jerel

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.