Hi all,
I've published an article on CodeProject describing how you can add Ajax support (Microsoft AJAX and AjaxToolKit) to your
Cuyahoga web site.
Read the article
The link is returning an errorpage. Maybe it's temporarily or did you provide a wrong link?
I think it is a problem on codeproject, through the search I can't get to the page either.
Yes the problem was with code project. But now the article is available.
I've done a quick read of your article. The way your describing it, it more or less the same as the Scriptmanager is added in the Cuyahoga.Web.Extensions project. Simple, but powerful, the only difference I see for now, is that the Cuyahoga.Web.Extensions assembly is additional to the project and doesn't require any change in the core or web-project, and you can use the scriptmanager the same way as you used to in every other asp.net project.
I've added this project to the contrib-project (about a month ago), it is still not finished, but it does work. I have some ideas which I will work on this week. I'll update the project in the contrib. And add the slideshows which are shown on
http://erwinberends.com and the jquery slideshow shown on
http://www.svalmen.nl. I had to wait with the samples till version 1.5.1 was realeased with the new module-loader stuff.
I don't know wether or not you did take a look at this?
Hi Efie,
I have heard about Cuyahoga.Web.Extensions in the forum but I did not take a look the code. I will check it out.
It is still a really small project, especially the part I mentioned above about the Scriptmanager but it does the job :)
Small but saves the day :) I am looking forward for your updates and will be pleased to replace my custom Ajax support with your project.
Error 27 The type or namespace name 'ScriptManager' could not be found (are you missing a using directive or an assembly reference?) C:\project\Web\UI\AjaxGeneralPage.cs 29 32 Cuyahoga.Web
Error 29 The type or namespace name 'ScriptManager' could not be found (are you missing a using directive or an assembly reference?) C:\project\Web\UI\AjaxBaseModuleControl.cs 17 39 Cuyahoga.Web
Oops, I think my latest versions has this problem. I'll take a look at it. I think the reference to System.Web.Extensions is missing, maybe you can add the reference and see if it works
The reason shall be one of these
1- System.Web.Extensions registration. If the machine where your site is running does not have Ajax Extensions installed you will get this error. Please check this out.
2- Please read the "Ajax Support Preperation" section of my article at
http://www.codeproject.com/KB/ajax/cuyahoga_ajaxsupport.aspx . In this section I explain the modifications that should be done to the template ascx file. (Your template ascx is here Templates\YourTemplateName\YourTemplate.ascx )
The registration of the system.web.extensions could be a problem, but the commit I made to svn didn't contain all files in the project, one of the files was the system.web.extensions assembly (it should all work on a machine without installing the extensions stuff from MS). I've committed the stuff again with the right files, so it should work for now.
Efie,
I am wondrign How to use the extension you have written.
1. What version of Cuya does it work with.
2. The AjaxBaseTemplate. I assume that you template has to inherit from this.
i also assume that on the page you can still do normal post back.
Sorry for dump questions.
Can i ask you to add something in the Contrib SVN like a readme to scribe it a bit of how to use it.
G
It does work with versions 1.5.x
There are no dumb questions :). I'll add my stuff to the contrib-project this week (discussed this with Martijn last week), so than an example will become available. Also I'll write a simple howto.txt.
I've added a readme.txt to the contrib-project which provides basic information about the Cuyahoga Web Extensions, sample apps will follow this week.
thanks efie.
Now i really get how to use it.
Ged
Thanks efie, I've just add your changes to my web site but I'm dealing with some problems in my nodeless pages.
I just can't make it work. For these pages I'm using the ModuleAdminBasePage and not the GeneralPage as you sugest.
Nevertheless I can't make this work, even inheriting from AjaxGeneralPage.
I'm trying to use the AjaxControlToolkit and I'm getting errors from the extendercontrolbase:
Extender controls may not be registered before PreRender.
I think the toolkit is not liking cuyahogas framework.
Best regards,
Rui Isidro
I'll take a look at it. It works with the AutoCompleteExtender from the toolkit (just tested it a last week).
Maybe you should update the source from the contrib-project, I don't see where I mentioned the AjaxGeneralPage (it isn't even there anymore). Lately I've done a bit of refactoring (and it is still not finished, while writing the readme.txt I found some issues)
Are you using the extensions stuff in the admin-part of the site? Or just in a module or template?
I'm having the same problem now, I'll take a look at it. Some weird stuff is happening...
Please read "Adding Ajax Support To Your Nodeless Pages - IMPORTANT NOTE" section of my article on CodeProject
http://www.codeproject.com/KB/ajax/cuyahoga_ajaxsupport.aspx
The problem is with OnInit. Move OnInit code to OnPreInit and read about the ASP.NET page lifecyle carefully.