J
JJ297
How do I display a message box on a button?
How do I display a message box on a button?
Assuming you mean "How do I display a message box when I click a button?"...
<asp:Button ID="MyButton" runat="server" Text="Hello"
OnClientClick="alert('Hello');" />
Yes, this is what I wanted. I'm actually sking the user if they are
sure they want to delete their request they selected. How do I give
them the option to back out if they don't want to delete a question.
Yes, this is what I wanted. I'm actually asking the user if they are
sure they want to delete their request they selected. How do I give
them the option to back out if they don't want to delete a question.
<asp:Button ID="MyButton" runat="server" Text="Hello"
OnClientClick="javascript:return confirm('Are you sure you want to
delete this item?');" />- Hide quoted text -
- Show quoted text -
Thanks! It's great having pro's being able to answer my simple
problems. I guess you can tell I'm a newbie.- Hide quoted text -
- Show quoted text -
Check outhttp://4guysfromrolla.com/
They have a lot of good tutorials that will show you how to do all
sorts of stuff.- Hide quoted text -
- Show quoted text -