c# - Pop up warning message -


i have nice pop warning says "are sure want overwrite file? yes no. there way telerik or ajax tool kit?. want able control on server side c#

thank you

one way

1) create div popup

2) display popup when events occurs (like button click)

3) if users click ok doing somethings on server side

4) if users click no hide div

here code, sorry if there error don't have environment on hands.

<head> <script type="text/javascript"> function showconfirm() {    var popup = document.getelementbyid('popup');    popup.style.display = ''; } function hide() {    var popup = document.getelementbyid('popup');    popup.style.display = 'none';  } </script> </head> <body> <form runat="server" id="form1">   <div id="popup" style="display:none">     <p>bla bla bla</p>     <asp:button id="btn_ok" runat="server" onclick="serverrountine_click"/>     <asp:button id="btn_ko" runat="server" onclientclick="hide();"/>   </div>  <asp:button id="btn_overwrite" runat="server" onclientclick="showconfirm();"/> </form> </body> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -