Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataGrid & Form on Same Page Post Issue

Reply
Thread Tools

DataGrid & Form on Same Page Post Issue

 
 
Paul D. Fox
Guest
Posts: n/a
 
      03-04-2005
I have a datagrid that does and edit/update/delete/cancel routine and then I
have a form at the bottom of the page with an "Add" button to add a another
record. This form as validation (e.g. required fields), so when I click on
"Edit" in the datagrid and then "update" it, the form's validation summary
gets executed. How can I update the datagrid without getting the form
"posted", or at least not run the validation ?

Paul


 
Reply With Quote
 
 
 
 
Elton Wang
Guest
Posts: n/a
 
      03-05-2005
Hi Paul,

You might use following logic:

In EditCommand (Go to Update state)
disable validation
(may also disable Add button)
In UpdateCommand & CancellCommand (Return to normal state)
enable validation
(enable Add button)

HTH

Elton Wang



>-----Original Message-----
>I have a datagrid that does and edit/update/delete/cancel

routine and then I
>have a form at the bottom of the page with an "Add"

button to add a another
>record. This form as validation (e.g. required fields),

so when I click on
>"Edit" in the datagrid and then "update" it, the form's

validation summary
>gets executed. How can I update the datagrid without

getting the form
>"posted", or at least not run the validation ?
>
>Paul
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need form onClick output to be on the same page as the form John Javascript 6 03-11-2006 01:30 AM
Web form's reply on same page as form. John Perl Misc 2 02-13-2006 10:23 AM
What is wrong I want the form and the form validation in the same page karenmiddleol@yahoo.com ASP General 4 09-30-2005 03:34 PM
Want to fill a form box2 automatically based on form box1 input [on the same page] Matt MC HTML 2 05-25-2005 10:07 PM
Want to fill a form box2 automatically based on form box1 input [on the same page] Matt MC Javascript 2 05-25-2005 10:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57