I am using a GridView connected to a SqlDataSCource. With the select option, I can select a specific ticket (the variable is saved in an session object)after this is done, i redirect to a site clled "editticket.aspx" where again i have a view (detailsview) conected to a sqldatabase, where i use the session variable. so in the detailsview i can edit and delete the ticket. As i said,this is possible. But it seems that the sql commands are executed at last. When i use the delete button (on_clickDeleteButton) function and put the 'response.redirect(string url);' at last position the redirect works, but the deletion does not.
Is there a possibilite to delete a specific record out of the sqldatabase in c#?example: SqlDataSource.DeleteSepecificCommand(); <- not a true command just an idea of how it maight look like
So long
|