2008年3月31日 星期一

ASP.NET create a pop-up confirm message while clicking a button

Situation:

Want to create a pop-up confirm message while clicking a button.

========
Solution:

try using,

< asp:Button ID="ooxx" runat="server" Text="Delete" OnCommand="ooxx" OnClientClick="return confirm('Sure to delete?');" >

沒有留言: