DataGrid

Rose

New Member
I made a asp.net DataGrid that is making update and delete<BR> on a database.<BR> The grid works perfectly, but there is one thing tha I<BR> woould like to do. I<BR> want the user to receive a confirmation that he wants to<BR> realy delete that<BR> redcord( now, it clicks on the link and the record its<BR> deleted without<BR>asking).<BR> example of what I want: User clicks on delete and receives<BR> a message "Are<BR> you sure you want to delete that record?" (javacsript<BR> confirm) and if he<BR> answers yes, the record is delete otherwise no.<BR> Can anyone tell me how to do that?<BR>would be to take advantage of IsPostBack.<BR>Use a conditional If statement in your subroutine that checks IsPostBack. If it's the first time submitting the page (clicking delete), show the message with a button asking if they want to delete.<BR>If IsPostBack Then<BR>'show confirmation message<BR>Else<BR>'run delete code<BR><BR>etc...<BR><BR>Attach the event to the delete button so that if they have selected yes, you can run the delete code, else, exit the sub if no.Well, thats my problem ... I dont want to do Postback...<BR>I want to send a simple confirm (javascript/client)...<BR>In Tradicional asp that was peace of cake..but with the data grid object its not that easy
 
Back
Top