Newbie Delete question

Discussion in 'ASP .Net Datagrid Control' started by Robert Dufour, May 3, 2007.

  1. 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
     
    Robert Dufour, May 3, 2007
    #1
    1. Advertising

  2. No had not thought of that.
    Weill look at it
    Thanks
    "MasterGaurav (www.edujini-labs.com)" <>
    wrote in message news:...
    >> 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?

    >
    > 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, May 6, 2007
    #2
    1. Advertising

  3. 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)" <>
    wrote in message news:...
    >> No had not thought of that.
    >> Weill look at it
    >> Thanks

    >
    > Any luck?
    >
    >
    > --
    > Happy Hacking,
    > Gaurav Vaish | www.mastergaurav.com
    > www.edujini-labs.com
    > http://eduzine.edujini-labs.com
    > -----------------------------------------
    >
    >
     
    Robert Dufour, May 20, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sandeep Grover

    delete on delete !

    Sandeep Grover, Jul 12, 2003, in forum: C++
    Replies:
    19
    Views:
    664
    Chris \( Val \)
    Jul 22, 2003
  2. HeroOfSpielburg
    Replies:
    1
    Views:
    416
    Alf P. Steinbach
    Aug 6, 2003
  3. 0to60
    Replies:
    4
    Views:
    328
    Jerry Coffin
    Dec 19, 2003
  4. Mathieu Malaterre

    delete NULL, what about delete[] NULL

    Mathieu Malaterre, Aug 17, 2004, in forum: C++
    Replies:
    2
    Views:
    3,882
    Mathieu Malaterre
    Aug 17, 2004
  5. DamonChong
    Replies:
    11
    Views:
    592
    msalters
    Jan 31, 2005
Loading...

Share This Page