Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Wednesday, March 28, 2012

Installation problem

Hi

I'm using VS 2005 on Vista Business. I installed AJAX Extentions ans Toolkit. When I create a new AJAX enabled website everything is fine. But when I use some of the demos I get hundreds of errors - as if the AJAX extentions were disabled. In case of the ToDoList-CS demo website for instance I get the following errors.

Error 1 Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 3 6 C:\...\ToDoList-CS\
Error 2 Element 'UpdateProgress' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 11 10 C:\...\ToDoList-CS\
Error 3 Validation (XHTML 1.0 Transitional): Element 'progresstemplate' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 12 10 C:\...\ToDoList-CS\
Error 4 Validation (XHTML 1.0 Transitional): Element 'img' is missing required attribute 'alt'. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 14 14 C:\...\ToDoList-CS\
Error 5 Element 'UpdatePanel' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 23 10 C:\...\ToDoList-CS\
Error 6 Validation (XHTML 1.0 Transitional): Element 'contenttemplate' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 24 10 C:\...\ToDoList-CS\
Error 7 Element 'GridView' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 25 14 C:\...\ToDoList-CS\
Error 8 Validation (XHTML 1.0 Transitional): Element 'columns' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 33 11 C:\...\ToDoList-CS\
Error 9 Element 'CommandField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 34 18 C:\...\ToDoList-CS\
Error 10 Element 'BoundField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 35 18 C:\...\ToDoList-CS\
Error 11 Element 'BoundField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 37 18 C:\...\ToDoList-CS\
Error 12 Element 'CheckBoxField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 38 18 C:\...\ToDoList-CS\
Error 13 Validation (XHTML 1.0 Transitional): Element 'triggers' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 42 10 C:\...\ToDoList-CS\
Error 14 Element 'AsyncPostBackTrigger' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 43 14 C:\...\ToDoList-CS\
Error 15 Element 'UpdatePanel' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 52 9 C:\...\ToDoList-CS\
Error 16 Validation (XHTML 1.0 Transitional): Element 'contenttemplate' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 53 6 C:\...\ToDoList-CS\
Error 17 Element 'DetailsView' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 54 14 C:\...\ToDoList-CS\
Error 18 Validation (XHTML 1.0 Transitional): Element 'fields' is not supported. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 61 10 C:\...\ToDoList-CS\
Error 19 Element 'BoundField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 62 18 C:\...\ToDoList-CS\
Error 20 Element 'BoundField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 64 18 C:\...\ToDoList-CS\
Error 21 Element 'CheckBoxField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 65 18 C:\...\ToDoList-CS\
Error 22 Element 'CommandField' is not a known element. This can occur if there is a compilation error in the Web site. C:\Users\Igor\Desktop\ToDoList-CS\ToDoList-CS\Default.aspx 66 18 C:\...\ToDoList-CS\

Why is that? I followed the tips from ASP.NET AJAX Control Toolkit: Installation and getting started onhttp://ajax.asp.net/ during installation.

so when you downloaded the toolkit zip folder. you loaded the poject then compiled and ran it, getting the demo page and all that? and then you added the dll to the toolbox area?


I don't fully understand. I did everything as shown on the webcast.

I installed (at least I think so) everything required to be able to create AJAX enabled web sites. At present, when I open VS and create a new website I can easily add (both AJAX extentions and AJAX Toolkit tas in the tolbox menu are visible) AJAX extentions, updatepanels etc. I can also build those pages easily - with no errors.

But when I open VS and choose to open an exisitng website and point to one of the folders downloaded from asp.net site VS display errors, like these above.

Maybe I'm doing something incorrectly.

Both the ajax extentions and toolkit installed are the latest available.


that is odd, maybe there is a linking issue with finding the controll toolkit. Are there any other erros that you get that arnt like the ones you showed before?

also if you have somethign like this in your code

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

make sure the tagPrefix is the same as what is used in your code to create controls, so make sure you page uses

<asp:Textbox ID="text1" runat="server"/>

for example. They must match that add line, but because this is a demo from online it should be right

Wednesday, March 21, 2012

Is it easier to add AJAX or CSS Adapters?

I have a new web application. C#. .net 2.0. I can of course create it blank, but I want to use the VS template for either AJAX or the CSS Adapters. I want to use both, but am not sure how to add them later. Which would you suggest I start the application as AJAX or CSS Adapter? Which is easier to go back and add? Thank you.

CSS is a much much much easier technology, so start with the AJAX template.

Happy coding :)


CSS Adapters are easy to implement. However, they also seem to take over anything they are configured to transform. o, for example - if you use the gridview one - perhaps you do not want the adapter to apply the styles - I found no easy way to get rid of them and still retain them for the rest of the pages . But I also run a dynamically generated site so excluding certain pages / paths in a web.config was not an option...

Ajax is relatively more complex but not by much and you have alot more flexibility over where and how...In combination - and using them for the right design reasons both can equally be leveraged...Design with the Ajax template - the CSS adapters can just get dropped in later and a simple tweak to the web.config. Much harder to remember all the things in a Ajax web.config to copy over to a CSS Adapter template,...either or though it is not all that difficult...play around with them - I am sure you will find what works best for you...

Just my two cents worth...