Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
Hi All,
I downloaded the ajax tool kit and added to my tool box. But when I drag and drop ajax controls on my web form,The below errors I am getting.
 
1. Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
2. Unknown server tag 'cc1:HoverMenuExtender.
 
Here is my .aspx code.
 
<%@ 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)
    {
        Label1.ForeColor = System.Drawing.Color.FromName(RadioButtonList1.SelectedItem.Text);
    }
</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 Example: Using 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>
        <br /><br />
        <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>
 

Please solve my problem.
 
Regards,
 
N.SRIRAM
Posted 17-Jan-11 0:17am
SRIRAM 21.5K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try using ToolkitScriptManager instead of ScriptManager. If still it does not solve the issue then check with your Ajax version or reload Ajaxtoolkit again to your toolbox.
Its working fine on my side.
 
Specify exact error in case it is not resolved.
 
Happy Coding
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try THIS[^].
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Very informative post. Its really helpful for me and beginner too. Check out this link too its also having a nice post with wonderful explanation on Ajax Toolkit HoverMenuExtender Control in ASP.Net:
 
http://mindstick.com/Articles/037b835c-a670-4200-8096-77771cf006e1/?Ajax%20Toolkit%20HoverMenuExtender%20Control%20in%20ASP.Net[^]
 
Thanks!
  Permalink  
v3
Comments
Manfred R. Bihy at 2-Jan-12 8:01am
   
How come you're answering questions almost a year old. Your questionable actions have already roused our suspicion. Besides that you should really learn how to answer properly and inserting links that work too.
 
For now I fixed that for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 200
3 Zoltán Zörgő 149
4 BillWoodruff 120
0 OriginalGriff 7,610
1 DamithSL 5,559
2 Sergey Alexandrovich Kryukov 5,324
3 Maciej Los 4,961
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 19 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100