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. Advertising

  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. 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. adam222
    Replies:
    3
    Views:
    3,756
    Christopher Reed
    Jan 18, 2006
  2. =?Utf-8?B?RGFuIFNpa29yc2t5?=

    SqlDataSource OnSelected Event Not Firing

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

    SqlDataSource Deleting

    cyp7, Nov 3, 2006, in forum: .NET
    Replies:
    1
    Views:
    623
  4. Harry Barker
    Replies:
    2
    Views:
    543
    Alf P. Steinbach
    Apr 19, 2006
  5. crea
    Replies:
    2
    Views:
    440
    Nobody
    Dec 28, 2012
Loading...

Share This Page