Groups | Blog | Home
all groups > asp.net datagrid control > may 2007 >

asp.net datagrid control : Newbie Delete question


Robert Dufour
5/3/2007 1:45:33 PM
I have a gridview that allows deletes, It uses a single table but the
contents of the table rel;ate to a child table and in then sql server
defintions, cascabding deletes are not allowed. So functionally it works as
it should , If I try to delete a record that has child recors I get an error
page if I try to delete a record with no child records, delete works OK.

However I would like to have a more user friendly interface than the
standard error page popup and have the user come back to the same page
automatically. How can I do this?

Thanks for any help?
Bob

MasterGaurav (www.edujini-labs.com)
5/4/2007 12:00:00 AM
[quoted text, click to view]

Have you tried handling DbException (in Delete command) yourself?


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------

Robert Dufour
5/5/2007 9:19:13 PM
No had not thought of that.
Weill look at it
Thanks
"MasterGaurav (www.edujini-labs.com)" <gaurav.vaish.nospam@nospam.gmail.com>
[quoted text, click to view]

MasterGaurav (www.edujini-labs.com)
5/8/2007 9:29:15 AM
[quoted text, click to view]

Any luck?


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------

Robert Dufour
5/20/2007 12:41:20 PM
Had to put it on the back burner, something else came up, haven't checked it
out yet, sorrry
Bob
"MasterGaurav (www.edujini-labs.com)" <gaurav.vaish.nospam@nospam.gmail.com>
[quoted text, click to view]

AddThis Social Bookmark Button