Hi,
This is the solution:
<script language ="javascript" type ="text/javascript">
function test() {
if (confirm('Are u sure ?'))
return true;
else
return false;
}
</script>
button code:
<asp:Button ID="btnDelete" runat="server" OnClientClick="return test();" Text="Save" onclick="btnDelete_Click" />
Here writing of return in front of OnClientClick="return test() will decide to go for delete event or not if it returns true it will perfom delete function else it will discard delete function