AJAX Control Toolkit

I installed the Ajax Control Toolkit according to the instructions, and
added the controls to my toolbox. However, when I drag a control onto my
aspx page, it reads something like:
<cc1:Accordion ID="Accordion1" runat="server">
</cc1:Accordion>
However the examples display:
<ajaxToolkit:Accordion>...
How do I get Visual Studio to use the same reference? cc1 doesn't mean much
to anyone.

Advertisements

GeoffreyD wrote:
> Hi
>
> I installed the Ajax Control Toolkit according to the instructions, and
> added the controls to my toolbox. However, when I drag a control onto my
> aspx page, it reads something like:
> <cc1:Accordion ID="Accordion1" runat="server">
> </cc1:Accordion>
> However the examples display:
> <ajaxToolkit:Accordion>...
> How do I get Visual Studio to use the same reference? cc1 doesn't mean much
> to anyone.
>
>
There will be a line at the top of your aspx page that reads:
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

"GeoffreyD" wrote:
> Hi
>
> I installed the Ajax Control Toolkit according to the instructions, and
> added the controls to my toolbox. However, when I drag a control onto my
> aspx page, it reads something like:
> <cc1:Accordion ID="Accordion1" runat="server">
> </cc1:Accordion>
> However the examples display:
> <ajaxToolkit:Accordion>...
> How do I get Visual Studio to use the same reference? cc1 doesn't mean much
> to anyone.
>
>
>

"Mick Walker" <> wrote in message
news:...
> GeoffreyD wrote:
>> Hi
>>
>> I installed the Ajax Control Toolkit according to the instructions, and
>> added the controls to my toolbox. However, when I drag a control onto my
>> aspx page, it reads something like:
>> <cc1:Accordion ID="Accordion1" runat="server">
>> </cc1:Accordion>
>> However the examples display:
>> <ajaxToolkit:Accordion>...
>> How do I get Visual Studio to use the same reference? cc1 doesn't mean
>> much to anyone.
> There will be a line at the top of your aspx page that reads:
> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
> TagPrefix="cc1" %>
>
> Change it to:
> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
> TagPrefix="ajaxToolkit" %>
>
> You'll also have to update the tags of any items you have already added to
> the page.
>
> To save having to do this for every single page, you can add the following
> to your web.config file under the <controls> node:
>
> <add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit"
> assembly="AjaxControlToolKit"/>
>
>
> Kind Regards
> Mick Walker

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!