SqlDataSource.Deleting event

Discussion in 'ASP .Net' started by David C, Jun 14, 2007.

  1. David C

    David C Guest

    I want to use the deleting event on a gridview (using link button) to get
    the ID of the row being deleted so I can make sure that ID is not in another
    table. How do I reference this in my VB code in the SqlDataSource.Deleting
    event? Thank you.

    David
     
    David C, Jun 14, 2007
    #1
    1. Advertisements

  2. One way is to check the Parameters collection of the Command (of type
    SqlCommand) property of the argument passed to the event handler.

    "David C" wrote:

    > I want to use the deleting event on a gridview (using link button) to get
    > the ID of the row being deleted so I can make sure that ID is not in another
    > table. How do I reference this in my VB code in the SqlDataSource.Deleting
    > event? Thank you.
    >
    > David
    >
    >
    >
     
    =?Utf-8?B?U2l2YSBN?=, Jun 15, 2007
    #2
    1. Advertisements

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. Purvi T
    Replies:
    0
    Views:
    1,153
    Purvi T
    Oct 19, 2004
  2. H.G.Srivatsa

    Datagrid row deleting event

    H.G.Srivatsa, Aug 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    1,053
    Srivatsa
    Aug 22, 2005
  3. adam222
    Replies:
    3
    Views:
    3,890
    Christopher Reed
    Jan 18, 2006
  4. =?Utf-8?B?RGFuIFNpa29yc2t5?=

    SqlDataSource OnSelected Event Not Firing

    =?Utf-8?B?RGFuIFNpa29yc2t5?=, Jul 31, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,607
    m.unterauer
    Aug 23, 2006
  5. cyp7

    SqlDataSource Deleting

    cyp7, Nov 3, 2006, in forum: .NET
    Replies:
    1
    Views:
    668
  6. John Kotuby
    Replies:
    1
    Views:
    1,023
    John Kotuby
    Feb 24, 2007
  7. Harry Barker
    Replies:
    2
    Views:
    677
    Alf P. Steinbach
    Apr 19, 2006
  8. crea
    Replies:
    2
    Views:
    626
    Nobody
    Dec 28, 2012
Loading...