Ajax tab

Hi expert! I have a run time error as below when I am running the ajax tab content.

Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Below is the code the for the test.aspx:

<head runat="server">  
   <title>Untitled Page</title>  
    <style type="text/css">  
       .visoft__tab_xpie7 .ajax__tab_header  
        {  
            /* FULL HEADER COLOR */  
            background: Green url(images/tab-line.gif) repeat-x bottom;  
        }  
        .visoft__tab_xpie7 .ajax__tab_outer  
        {  
            /* TAB OUTER COLOR */  
           background: Red url(images/tab-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_inner  
        {  
            /* TAB INNER COLOR */  
            background: Purple url(images/tab-left.gif) no-repeat;  
        }  
        .visoft__tab_xpie7 .ajax__tab_tab  
        {  
            /* TAB CONTENT COLOR */  
            background: Green url(images/tab.gif) repeat-x;  
       }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_outer  
        {  
            /* TAB OUTER HOVER COLOR */  
            background: Pink url(images/tab-hover-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_inner  
        {  
            /* TAB INNER HOVER COLOR */  
           background: Maroon url(images/tab-hover-left.gif) no-repeat;  
        }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_tab  
        {  
            /* TAB CONTENT HOVER COLOR */  
            background: Gray url(images/tab-hover.gif) repeat-x;  
        }  
        .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_outer  
        {  
            /* TAB OUTER ACTIVATED COLOR */  
            background: Teal url(images/tab-active-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_inner  
       {  
            /* TAB INNER ACTIVATED COLOR */  
            background: url(images/tab-active-left.gif) no-repeat;  
        }  
       .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_tab  
        {  
            /* TAB CONTENT ACTIVATED COLOR */  
            background: url(images/tab-active.gif) repeat-x;  
        }  
        .visoft__tab_xpie7 .ajax__tab_header  
        {  
            background: Yellow;  
            font-family: verdana,tahoma,helvetica;  
           font-size: 11px;  
        }  
       .visoft__tab_xpie7 .ajax__tab_outer  
       {  
            height: 29px;  
        }  
        .visoft__tab_xpie7 .ajax__tab_inner  
        {  
            padding-left: 3px;  
        }  
        .visoft__tab_xpie7 .ajax__tab_tab  
        {  
            padding: 8px 40px;  
            margin: 0;  
        }  
       .visoft__tab_xpie7 .ajax__tab_body  
        {  
            font-family: verdana,tahoma,helvetica;  
            font-size: 10pt;  
            border: 1px solid #999999;  
            border-top: 0;  
            padding: 8px;  
            background-color: #ffffff;  
       }  
        #__tab_tabContainer1_tabPanel4,#tabContainer1_tabPanel4_tab  
        {  
            background-color: Black;  
        }  
    </style>  
</head>  
<body>  
    <form id="form1" runat="server">  
    <div>  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager>  
        <ajaxcontroltoolkit:TabContainer ID="tabContainer1" runat="server" Height="300" CssClass="visoft__tab_xpie7">  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel1" HeaderText="Tab 1" runat="server" CssClass="backgroundTabPanel">  
                <ContentTemplate>  
                  Test - Tab 1</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel2" HeaderText="Tab 2" runat="server">  
                <ContentTemplate>  
                    Test - Tab 2</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel3" HeaderText="Tab 3" runat="server">  
                <ContentTemplate>  
                   Test - Tab 3</ContentTemplate>  
           </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel4" HeaderText="Tab 4" runat="server">  
                <ContentTemplate>  
                    Test - Tab 4</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
       </ajaxcontroltoolkit:TabContainer>  
   </div>  
    </form>  
</body>  

Here is the web.config file:

<configuration>
<system.web>
  <pages>
    <controls>
      <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>
    </controls>
  </pages>
</system.web>

</configuration>

How to fix it? Appreciate it!!

Snoopy_CAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

samsymonCommented:
Put the ajax too kit dll in bin folder and register it initally like

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxcontroltoolkit" %>


<ajaxcontroltoolkit:TabContainer ID="tabContainer1" runat="server" Height="300" CssClass="visoft__tab_xpie7">  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel1" HeaderText="Tab 1" runat="server" CssClass="backgroundTabPanel">  
                <ContentTemplate>  
                  Test - Tab 1</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel2" HeaderText="Tab 2" runat="server">  
                <ContentTemplate>  
                    Test - Tab 2</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel3" HeaderText="Tab 3" runat="server">  
                <ContentTemplate>  
                   Test - Tab 3</ContentTemplate>  
           </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel4" HeaderText="Tab 4" runat="server">  
                <ContentTemplate>  
                    Test - Tab 4</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
       </ajaxcontroltoolkit:TabContainer>  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
samsymonCommented:
if any problem in the name then use cc1 instead of ajaxcontroltool while registering.
0
Snoopy_CAuthor Commented:
Thank you for  your help! Now I created a bin folder and saved the file with the code you advised and named it AjaxControlToolkit.dll. But ge the same error.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Snoopy_CAuthor Commented:
Here is the modified code, but still no help!

ajax.aspx:
<%@ Register Assembly=”AjaxControlToolkit” Namespace=”AjaxControlToolkit” TagPrefix=”ajaxToolkit”%>
<head runat="server">  
   <title>Untitled Page</title>  
    <style type="text/css">  
       .visoft__tab_xpie7 .ajax__tab_header  
        {  
            /* FULL HEADER COLOR */  
            background: Green url(images/tab-line.gif) repeat-x bottom;  
        }  
        .visoft__tab_xpie7 .ajax__tab_outer  
        {  
            /* TAB OUTER COLOR */  
           background: Red url(images/tab-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_inner  
        {  
            /* TAB INNER COLOR */  
            background: Purple url(images/tab-left.gif) no-repeat;  
        }  
        .visoft__tab_xpie7 .ajax__tab_tab  
        {  
            /* TAB CONTENT COLOR */  
            background: Green url(images/tab.gif) repeat-x;  
       }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_outer  
        {  
            /* TAB OUTER HOVER COLOR */  
            background: Pink url(images/tab-hover-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_inner  
        {  
            /* TAB INNER HOVER COLOR */  
           background: Maroon url(images/tab-hover-left.gif) no-repeat;  
        }  
        .visoft__tab_xpie7 .ajax__tab_hover .ajax__tab_tab  
        {  
            /* TAB CONTENT HOVER COLOR */  
            background: Gray url(images/tab-hover.gif) repeat-x;  
        }  
        .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_outer  
        {  
            /* TAB OUTER ACTIVATED COLOR */  
            background: Teal url(images/tab-active-right.gif) no-repeat right;  
        }  
        .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_inner  
       {  
            /* TAB INNER ACTIVATED COLOR */  
            background: url(images/tab-active-left.gif) no-repeat;  
        }  
       .visoft__tab_xpie7 .ajax__tab_active .ajax__tab_tab  
        {  
            /* TAB CONTENT ACTIVATED COLOR */  
            background: url(images/tab-active.gif) repeat-x;  
        }  
        .visoft__tab_xpie7 .ajax__tab_header  
        {  
            background: Yellow;  
            font-family: verdana,tahoma,helvetica;  
           font-size: 11px;  
        }  
       .visoft__tab_xpie7 .ajax__tab_outer  
       {  
            height: 29px;  
        }  
        .visoft__tab_xpie7 .ajax__tab_inner  
        {  
            padding-left: 3px;  
        }  
        .visoft__tab_xpie7 .ajax__tab_tab  
        {  
            padding: 8px 40px;  
            margin: 0;  
        }  
       .visoft__tab_xpie7 .ajax__tab_body  
        {  
            font-family: verdana,tahoma,helvetica;  
            font-size: 10pt;  
            border: 1px solid #999999;  
            border-top: 0;  
            padding: 8px;  
            background-color: #ffffff;  
       }  
        #__tab_tabContainer1_tabPanel4,#tabContainer1_tabPanel4_tab  
        {  
            background-color: Black;  
        }  
    </style>  
</head>  
<body>  
    <form id="form1" runat="server">  
    <div>  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager>  
        <ajaxcontroltoolkit:TabContainer ID="tabContainer1" runat="server" Height="300" CssClass="visoft__tab_xpie7">  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel1" HeaderText="Tab 1" runat="server" CssClass="backgroundTabPanel">  
                <ContentTemplate>  
                  Test - Tab 1</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel2" HeaderText="Tab 2" runat="server">  
                <ContentTemplate>  
                    Test - Tab 2</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel3" HeaderText="Tab 3" runat="server">  
                <ContentTemplate>  
                   Test - Tab 3</ContentTemplate>  
           </ajaxcontroltoolkit:TabPanel>  
            <ajaxcontroltoolkit:TabPanel ID="tabPanel4" HeaderText="Tab 4" runat="server">  
                <ContentTemplate>  
                    Test - Tab 4</ContentTemplate>  
            </ajaxcontroltoolkit:TabPanel>  
       </ajaxcontroltoolkit:TabContainer>  
   </div>  
    </form>  
</body>



Here is the web.config:



<configuration>
<system.web>
  <pages>
    <controls>
      <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD36Ee35"/>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
    </controls>
  </pages>
</system.web>

</configuration>

 

 

Error: Required attribute 'tagPrefix' not found.

Appreciate it!


 
0
samsymonCommented:
did u register assembly by

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxcontroltoolkit" %>

if not worked then do not copy the dll.just add a reference by right clicking bin then add reference by going to browse tab.then the dll will automatically added to the web config.

it will work i think.
0
Snoopy_CAuthor Commented:
Hi samsymon, Thank you for your reply!

I didn't get it since I am new to Ajax, but I don't know why it is so difficult to run the file.
How to add a reference?
What I did is to right click the bin folder (which already contains the AjaxControlToolkit.dll, but I don't know how to add reference. After right click the bin, I don't know how to browse the tab.

I attached the image, which I right clicked the bin folder, but I cannot find BROWSE. Did I do something wrong? Appreciate it!
right.jpg
0
samsymonCommented:
am sorry i assumed that u r working in visual studio.
for that only right clicking and adding reference will work.
it cannot be applied by right clicking the folder.

ref.JPG
ref2.JPG
0
Snoopy_CAuthor Commented:
I tried to follow your instructions, but have an error as below:

A reference to 'C\Inetpub\wwwroot\AjaxControlkti.dll could not be added.
0
samsymonCommented:
here a" :" is missing in C\Inetpub\wwwroot\AjaxControlkti.dll

also check whether you have permission to access the file.
0
samsymonCommented:
also are you sure that you are using the correct dll.
i found some mismatch in spelling "AjaxControlkti.dll"
0
samsymonCommented:
if you don't have ajax toolkit use this.
i took it from asp.net form.you can download it from there which is a better option.
AjaxControlToolkit.dll
0
Snoopy_CAuthor Commented:
Thank you! Will try it!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.