?
Solved

Ajax tab

Posted on 2010-04-04
12
Medium Priority
?
1,068 Views
Last Modified: 2012-05-09
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!!

0
Comment
Question by:Snoopy_C
  • 7
  • 5
12 Comments
 
LVL 3

Accepted Solution

by:
samsymon earned 2000 total points
ID: 29798147
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
 
LVL 3

Assisted Solution

by:samsymon
samsymon earned 2000 total points
ID: 29798223
if any problem in the name then use cc1 instead of ajaxcontroltool while registering.
0
 

Author Comment

by:Snoopy_C
ID: 29863296
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
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 

Author Comment

by:Snoopy_C
ID: 29978456
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
 
LVL 3

Assisted Solution

by:samsymon
samsymon earned 2000 total points
ID: 29998682
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
 

Author Comment

by:Snoopy_C
ID: 30080916
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
 
LVL 3

Assisted Solution

by:samsymon
samsymon earned 2000 total points
ID: 30171946
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
 

Author Comment

by:Snoopy_C
ID: 30778571
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
 
LVL 3

Expert Comment

by:samsymon
ID: 31185149
here a" :" is missing in C\Inetpub\wwwroot\AjaxControlkti.dll

also check whether you have permission to access the file.
0
 
LVL 3

Assisted Solution

by:samsymon
samsymon earned 2000 total points
ID: 31247052
also are you sure that you are using the correct dll.
i found some mismatch in spelling "AjaxControlkti.dll"
0
 
LVL 3

Expert Comment

by:samsymon
ID: 31249836
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
 

Author Comment

by:Snoopy_C
ID: 32635707
Thank you! Will try it!
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.
Suggested Courses

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question