Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > SqlDataSource.Deleting event

Reply
Thread Tools

SqlDataSource.Deleting event

 
 
David C
Guest
Posts: n/a
 
      06-14-2007
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2l2YSBN?=
Guest
Posts: n/a
 
      06-15-2007
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
>
>
>

 
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
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Catching a RequiredFiled Validator event in PageLoad or some other event? Lars Netzel ASP .Net 3 07-22-2004 10:48 PM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net 2 05-25-2004 11:45 PM
PreRender Event occurs immediatley after Load event =?Utf-8?B?QWxpcmV6YSBaaWFp?= ASP .Net 1 02-09-2004 10:19 AM
Event On Form From Control Event Dave Wurtz ASP .Net 1 12-09-2003 10:37 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