code_junkie

How to display a Yes/No style message box in web part, and get client's choice

Nov 13th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <asp:Button runat="server" ID="Button1" OnClick="Button1_Click" OnClientClick="return confirm('Are you sure you want to do this?');" />
  2.  
  3. Button1.OnClientClick = "return confirm('Are you sure you want to do this?');";
Add Comment
Please, Sign In to add comment