如何打开模型弹出窗口

问题描述:

亲爱的所有

请告诉我如何打开弹出窗口,该弹出窗口中的一些文本值来自数据库

谢谢

Dear All

Please tell me how to open popup window some text value inside the popup which value come from the database

thanks

你好,

您可以将J-query弹出插件用于弹出窗口,请查看以下URL:-

http://swip.codylindley.com/popupWindowDemo.html [ http://www.queness.com/resources/html/modal/jquery-modal- window.html [^ ]

您可以将该插件放在页面中,然后将要从数据库中获取数据的任何控件放在其上,并获取该控件的ID并将其分配.
Hello There,

your can use J-query popup plugin for popup window take a look on this URL:-

http://swip.codylindley.com/popupWindowDemo.html[^]
Or
http://www.queness.com/resources/html/modal/jquery-modal-window.html[^]

you can put this plugin in your page and put any control which you want your data(from database) on it and take a Id of that control and assign it.


Hey,
   u do this using ajax
try following code
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="btnOpen" runat="server" EnableTheming="False" Text="Open" />
    <cc1:ModalPopupExtender ID="btnOpen_ModalPopupExtender" runat="server" DynamicServicePath=""

        PopupControlID="divPopUp" TargetControlID="btnOpen" CancelControlID="BtnClose"

        Enabled="True" >
    </cc1:ModalPopupExtender>
    <div id="divPopUp" style="height:250px;width:400px; background-color:Aqua;">
        <asp:Button ID="BtnClose" runat="server" EnableTheming="False" Text="Close" />
        This is Popup Window
    </div>
Best luck