Showing posts with label extensions. Show all posts
Showing posts with label extensions. Show all posts

Wednesday, March 28, 2012

Prefix for AJAX Extensions CTP

Hi all,

in the migration guide it says that the AJAX Extensions CTP prefix will stay at "atlas:" but when I add a reference to my EXISTING project it has the prefix "cc1:" (in other words it hasn't been defined yet in the )

<%@dotnet.itags.org.RegisterAssembly="Microsoft.Web.Preview"Namespace="Microsoft.Web.Preview.UI"TagPrefix="cc1" %>

The workaround (for users) is obvious (changing the TagPrefix) but I wanted you guys know about it.

For the fix it would be as simple as adding the TagPrefix to the assembly something like:

[assembly:TagPrefix("Microsoft.Web.Preview","atlas")]

PD: It works correctly though when I create a NEW project using the installed template in VS.NET 2005 (project template that generates AJAXCTPEnabledWebSiteX projects).

So what's the difference? It's the same dll right?

Regards,

Pieter

Hi,

I think the prefix is being registered in the web.config file of the template website.


Yes, but the guide asks to add these while migrating:

<addtagPrefix="atlas"namespace="Microsoft.Web.Preview.UI"assembly="Microsoft.Web.Preview"/>

<addtagPrefix="atlas"namespace="Microsoft.Web.Preview.UI.Controls"assembly="Microsoft.Web.Preview"/>

Still the prefix was set to "cc1"... on EXISTING pages, not on NEW pages within existing projects. Anyway, it's a minor issue.


hello.

well, i think the prefix wasn't defined by default by the team on the atlas dll. so, if you don't define it explicitly, you'll get a default prefix while droping the controls on a page.

Wednesday, March 21, 2012

Problem installing the AJAX Control Toolkit

I tried a search and didn't come up with my key words. I downloaded the ASP.NET 2.0 AJAX Extensions 1.0 and installed it without problems. I can start up Visual Web Developer 2005 Express Edition and now I'm able to choose "AJAX enabled website" from the create website menu.

The problem comes along when I try to install the AJAX Control Toolkit. I watched the second video in the AJAX series regarding how to install the toolkit. The guy unzipped the toolkit file and double clicked on the .sln file. When I do that, VWD opens up but throws up an error message ....

The application for project 'C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\AJAX Control Toolkit\AjaxControlToolkit\AjaxControlToolkit.csproj ' is not installed.
Make sure the application for the project type (.csproj) is installed.

Did anyone come across this issue? I know I can't be the only one.Smile

TIA for your help.Cool

there's no need to install the AjaxControlToolkit. After you unzip the downloaded file, just find the AjaxControlToolkit.dll in their sample folder (Bin) and copy that file to your current Bin folder.


Forgive the ignorance, but what do you mean by the current bin directory? Currently, this is the path on my computer where the website (that I'm developing with VWD Express) resides....

C:\Documents and Settings\Paul\My Documents\Visual Studio 2005\WebSites\Website1\

Under there, there's the App_Data folder, but no bin folder. Do I create a bin folder directly under my folder and just throw in that file? Or would this bin folder that you speak of, somewhere else on the computer? And once I put this file in the right place, the AJAX web controls related to the toolkit will show up in the panel in VWD (I imagine I'd have to restart VWD)?

Thanks in advance.


Never mind, I got the controls to show up on the toolkit panel in VWD Express by adding a tab and adding in the controls referenced by AjaxControlToolkit.dll.Smile They now are accessible in the panel to be used. I will experiment with the new AJAX Controls in a bit.

A question.... when creating a website that I want to incorporate with AJAX, must I choose "ASP.NET AJAX-Enabled Web Site"? Or can I choose either that or the regular "ASP.NET Web Site"? The reason I ask is, all those AJAX related controls are available for me to use regardless of which kind of website I choose at the beginning.

Thanks.