AJAX modalpopup不起作用 [英] AJAX modalpopup not working
本文介绍了AJAX modalpopup不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有
我下载了ajax扩展工具包并在vb2008中使用它
i创建一个简单的默认表单,并使用一个按钮显示弹出窗口。
但是当我运行表单并单击该按钮时,没有什么可以开心...为什么?
如何在按钮点击时显示ajax弹出窗口?
以下是我们的示例编码
dear all
I downloaded ajax extender toolkit and using it in vb2008
i create a simple default form and used a button to show the pop up window .
But when i run the form and click on that button nothing happlens... Why?
how to show the ajax popup window on button click?
Below is our sample coding
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:Button ID="BtnOkay" runat="server" Text="Button" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
CancelControlID="BtnCancel" OkControlID="BtnOK"
TargetControlID="BtnOkay" PopupControlID="Panel1" BackgroundCssClass="ModalPopupBG">
</asp:ModalPopupExtender>
<asp:Panel ID="Panel1" Style="display: none;" class="HellowWorldPopup" runat="server" Height="90px" Width="205px">
this is model popup
<asp:Button ID="BtnCancel" runat="server" Text="Button" />
<asp:Button ID="BtnOK" runat="server" Text="Button" />
</asp:Panel>
</div>
</form>
</body>
</html>
以下是我的CSS
AND below is my CSS
.ModalPopupBG
{
background-color:#CCCCFF;
-ms-filter: alpha(opacity=70);
-ms-opacity:0.7;
}
.HellowWorldPopup
{
min-width:200px;
min-height:150px;
background:white;
}
是否应该有代码显示窗口?
IS there should be a code to show the window?
推荐答案
Hi,
Quote:
Style =display:无;
Style="display: none;"
从面板控件中删除它。
--Amit
Remove this from your panel control.
--Amit
只需将Toolkit脚本管理器放在脚本管理器中,就可以使用更新版本的Ajaxtoolkit。
Just place Toolkit Script Manager instead of Script Manager for newer versions of Ajaxtoolkit.
这篇关于AJAX modalpopup不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文