Confirm Box
-
-
Check this out http://www.w3schools.com/js/js_popup.asp[^]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
lnkButton.Attributes.Add("OnClick", "if(!confirm('Are you sure?')){return false;}__doPostBack('" + lnkButton.ClientID + "');"); lbRemove.Click += new EventHandler(lnkButton_Click); protected void lnkButton_Click(object sender, eventargs e) { //Server side code only reached if user clicks OK }
I didn't get any requirements for the signature
-
Hi, In pageload event, add attributes to the button using the following code. Button1.Attributes.add("Onclick","return callconfirmation()"); In the aspx page, in between the head tages write the javascript function with the name callconfirmation. function callconfirmation() { if(confirm("Are You Sure You want to close the application")) { window.close(); } else { return false; } } Try the above code and let me know if you have any issues. Bhanu