ajax 弹出控件扩展器
我在 asp.net 中创建了一个 Web 应用程序,以将日历控件显示为弹出窗口。我已经为 PopupControlExtender 编写了代码,但它显示错误为无法识别的标记前缀
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</ContentTemplate>
</asp:UpdatePanel>
<ajax:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="TextBox1"
PopupControlID="Panel1"
Position="Right"
CommitProperty="value"
OffsetX="3">
I have created one web application in asp.net to show calendar control as popup.. i have written the code for PopupControlExtender but it shows the error as unrecognized tag prefix for
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</ContentTemplate>
</asp:UpdatePanel>
<ajax:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="TextBox1"
PopupControlID="Panel1"
Position="Right"
CommitProperty="value"
OffsetX="3">
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保包含 AjaxControlToolkit,以便能够仅使用它的控件。
我不确定您使用的是哪个 .NET 版本,但本质上您需要在项目中引用 dll,然后在第一页声明之后的代码顶部添加以下内容。
如果您使用的是 .NET 3.5 工具包,那么这就是您所需要的。
在 .NET 4 工具包中,最好将 asp:ScriptManager 替换为 asp:ToolkitScriptManager。
您可以在此处获取工具包
Make sure you include the AjaxControlToolkit, in order to be able to use only of it's controls.
I'm unsure as to which .NET version you are using, but essentially you need to reference the dll in your project, then add the following at the top of your code, after the first page declaration.
If you are using .NET 3.5 toolkit, then that's all you should require.
In .NET 4 toolkit, it's best that you replace your asp:ScriptManager with the asp:ToolkitScriptManager.
You can get the toolkits here