hello guys
i am creating a project in asp.net
and is that project i need to delete record with confirm box
for example, if i press the delete button then confirm box show me this msg like "Are you sure you want to delete" if i press OK then delete that record and if i press Cencel then record will not delete ....
so plz help me and guide me and provide me the source code about perticuler task if u can ...
Thanks.
Loading


Suthish NairPosted Apr 18, 2011, 1:58 PM
omkar mhaiskarPosted Apr 15, 2011, 7:09 AM
If you want to show only extender then lots of other guys had provide solution aabove to my ans.
My ans is:-
you can also use ajax confirmbutton extender to show confirm box. following is the link. for your refrence.
"http://www.mindstick.com/Articles/4e57a4f3-65aa-47a4-89e2-fed3ef6d5f8b/?Ajax%20Toolkit%20ConfirmButtonExtender%20Control%20in%20ASP%20Net"
here is the another way to show confirm box extender +modelpopup extender. to show attractive confirmbox extender.
"http://www.codeproject.com/KB/ajax/ASPModalInAction.aspx?msg=3291332&PageFlow=Fluid"
Mayur GujrathiPosted Apr 15, 2011, 5:46 AM
Suthish NairPosted Apr 15, 2011, 4:29 AM
Ankit NandekarPosted Apr 15, 2011, 4:28 AM
onclientclick="return confirm('Are you sure want to delete current record')"
tell me this code is working or not
Suthish NairPosted Apr 15, 2011, 4:27 AM
Because in future if you want to change the Confirmation message, you need to change in code-behind resulting in
uploading of dlls again.
On Page Load
btn1.Attributes.Add("onclick", "javascript:if(DeleteMe()==false) {return false;};");