New Message on dotNET User Group Hyd

Message Box

Reply
  Recommend Message 2 in Discussion
From: s_hashim

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.


View other groups in this category.

Click here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to