首页 文章

ajax悬停菜单扩展程序控制问题

提问于
浏览
0

我下载了ajax工具包并添加到我的工具箱中 . 但是当我在我的网络表单上拖放ajax控件时,我得到以下错误 .

  • 无法加载文件或程序集'AjaxControlToolkit'或其依赖项之一 . 该系统找不到指定的文件 .

  • 未知服务器标记'cc1:HoverMenuExtender .

这是我的.aspx代码 .
<%@ Page Language = "C#" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_Default"%> <%@ Register Assembly = "AjaxControlToolkit" Namespace = "AjaxControlToolkit" TagPrefix = "cc1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat = "server"> protected void RadioButtonList1_SelectedIndexChanged (object sender,EventArgs e) </ script> <html xmlns = "http://www.w3.org/1999/xhtml"> <head runat = "server"> <title> Untitled Page </ title> <style type = "text/css"> .PanelCSS {visibility:hidden; } </ style> </ head> <body> <form id = "form1" runat = "server"> <div style = "height: 504px"> <h2 style = "color:DeepPink; font-style:italic;"> Ajax Control Toolkit示例:使用HoverMenuExtender </ h2> <hr width = "550" align = "left" color = "Pink" /> <asp:ScriptManager ID = "ScriptManager1" runat = "server"> </ asp:ScriptManager> <cc1:HoverMenuExtender ID = "HoverMenuExtender1" runat = "server" TargetControlID = "Label1" PopupControlID = "Panel1" PopupPosition = "Bottom"> </ cc1:HoverMenuExtender>

<asp:Label ID = "Label1" runat = "server" Text = "Color changeable label." Font-Size = "XX-Large" Font-Names = "Comic Sans MS"> </ asp:Label> <asp:Panel ID = "Panel1" runat = "server" Width = "300" BorderColor = "Gray" BorderWidth = "1" CssClass = "PanelCSS"> <asp:RadioButtonList ID = "RadioButtonList1" runat = "server" RepeatColumns = "3" OnSelectedIndexChanged = "RadioButtonList1_SelectedIndexChanged" AutoPostBack = "true"> <asp:ListItem> Tan </ asp:ListItem> <asp:ListItem> Crimson < / asp:ListItem> <asp:ListItem> DarkBlue </ asp:ListItem> <asp:ListItem> SeaGreen </ asp:ListItem> <asp :ListItem> OrangeRed </ asp:ListItem> <asp:ListItem> Magenta </ asp:ListItem> <asp:ListItem> DeepPink </ asp:ListItem> </ asp:RadioButtonList> </ asp:Panel> </ div> </ form> </ body> </ html>
请解决我的问题 .

问候,

N.SRIRAM

1 回答

  • 0

    你真的在ASP.NET应用程序的bin目录中有AJAX Control Toolkit程序集吗?

    如果您已经在那里,是否已检查为Microsoft .NET Framework版本编译了添加的引用?

    也许你是一个旧版本,或者你是一个较新的版本,并且你使用的是错误版本的ASP.NET .

相关问题