2009-08-27 36 views
0

我使用vb.net代碼,我有下面的代碼在我的應用程序如何打開的ImageButton jQuery模態窗口中單擊

<asp:Panel ID="pnlArchive" DefaultButton="ibtnArchive" runat="server"> 
     <table> 
      <tr> 
       <td> 
        Please Enter Your Password to Set Archive: 
       </td> 
       <td> 
        <asp:TextBox ID="txtArchive" runat="server"></asp:TextBox> 
       </td> 
       <td> 
        <asp:ImageButton ID="ibtnArchive" runat="server" ImageUrl="~/images1/OK_button.png" /> 
       </td> 
      </tr> 
     </table> 
    </asp:Panel> 

現在我想開jQuery的模態對話框時用戶點擊上面的圖片按鈕,模態對話框將會有是的沒有選項。與我的自定義消息就可以了。其中返回被點擊或被Modal Dailog Box的用戶點擊,以便我們可以進一步執行一些其他代碼。

謝謝。

最好的問候, 馬諾

回答

1
$("#ibtnArchive").click (function() 
{ 
    // code for opening your dialog box 
}); 

編輯:

如果你需要一個簡單的模式對話框,那麼請在

Basic Modal Dialog

+0

非常感謝看看你的回覆,我可以有完整的openi代碼根據上面的要求,jquery模式框。請參閱我上面的問題 – 2009-08-27 06:32:09

+0

您是否擁有模態對話框的代碼或URL? – rahul 2009-08-27 06:35:52

+0

我沒有模態對話框的任何代碼和URL,請問您能否更清楚一點。我在上面的問題中提到了我的要求 – 2009-08-27 06:39:08