Click button show the confirmation popup first then call the onlick event in C#
2012-09-17 22:58
375 查看
<asp:imagebuttonid="ImageButtonSubmit"runat="server"ImageURL="images/delete.jpg"onclick="submit_button"
OnClientClick="return confirm('Are you sure you want to delete the messages?');"></asp:imagebutton>
IF OnClientClick== true
Then onclick event will be called
OnClientClick="return confirm('Are you sure you want to delete the messages?');"></asp:imagebutton>
IF OnClientClick== true
Then onclick event will be called
相关文章推荐
- [Android 問題] How to Add a Button in ListView, and Make the Event of onClick and onItemClick Coexist?
- ASPxPopupControl does not show up in the right place
- use MyButton is simple,only add two file and then add some code just bellow in any dlg src declear the button control and will ok!
- Constructor call must be the first statement in a constructor
- Constructor call must be the first statement in a constructor
- LAS show in the first 17 minutes cut the Nets Carter Lectra Wizards rude welcome a good start
- Constructor call must be the first statement in a constructor
- C#中的 .NET 弱事件模式 / The .NET weak event pattern in C#
- Constructor call must be the first statement in a constructor
- Java异常解决:Constructor call must be the first statement in a constructor
- 有关Constructor call must be the first statement in a constructor的问题
- Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in
- Constructor call must be the first statement in a constructor
- The relation between event and delegate in visual c#
- how to call the procedure in c# program
- button click event in jqxgrid jqwidgets
- Android PopupWindow You must call removeView() on the child's parent first.
- Trigger a button click with JavaScript on the Enter key in a text box
- gevent: AssertionError: Impossible to call blocking function in the event loop callback
- Queue an action event or invoking the button action in programmatic way