AJAX Control Toolkit

G

GeoffreyD

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.
 
M

Mick Walker

GeoffreyD said:
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
 
B

Braulio Diez

If it works don't bother quite much about it. Maybe the docs that you are
checking belongs to an older version of the toolkit (a lot of material is
based on the ATLAS beta version).

Good luck
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------
 
G

GeoffreyD

Hey

Thanks, that helps :)


Mick Walker said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top