Re: ListView server control in ASP.Net 3.5 Delete a row from a ListView Web Server Control
The first step to allow users to delete a row from the ListView is to provide them with a Delete Link / Delete button for every row in the ListView.
When the Delete link is clicked, the ItemDeleting event will be fired. We could invoke a method for this event. Within the method we could get the value for the primary key and invoke a stored procedure or use an inline SQL Delete statement.
__________________ S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
|