you can add this code in form load where the assigned javscript will added to the cmdDelete button which will give u message box.
cmdDelete.Attributes.Add("onclick", "getMessage()")
You need to write this below said _javascript_
here in this case i am making YES/NO message box, depending upon the users click ,i am assigning the value for a hidden textbox which will be used at server side
<SCRIPT language="_javascript_">
//Function for POpUP window Delete Confirm
function getMessage()
{
var ans;
ans=window.confirm('Do You want to Delete ?');
if (ans==true)
{
document.Form1.hdnbox.value='Yes';
}
else
{
document.Form1.hdnbox.value='No';}
}
</SCRIPT>
HTH
**********
Keep Smiling,
Regards.
Sayad Hashim Ali Kazi
Microsoft India Community Star.