Hello!
I am looking at the package Cuyahoga.Web.Extensions but not finish as I understand implement Ajax functionality.
Can you give me a guidelines for its implementation?
Thank you and greetings
Which part don't you understand? Is it the AjaxRequestDispatchert stuff (IAjaxHandler, IAjaxService), or the templates etc.?
The problem is how implement the Ajax utilities.
I can see an example of implement?
Good morning!!
I have a question, I have been doing tests and it as turned into the following error:
No se puede convertir un objeto de tipo 'ASP.modules_threads_controlthread_ascx' al tipo 'Cuyahoga.Web.UI.BaseModuleControl'.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.
Detalles de la excepción: System.InvalidCastException: No se puede convertir un objeto de tipo 'ASP.modules_threads_controlthread_ascx' al tipo 'Cuyahoga.Web.UI.BaseModuleControl'.
I can instruction a success? thats incomplete package? I leave something in the declaration of control?
using Cuyahoga.Web.Extensions.UI;
namespace Cuyahoga.Modules.Threads.Web
{
public partial class ControlThread : AjaxBaseTemplate
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Sorry, forgot to answer yesterday. Can you explain what you're trying to achieve? The AjaxBaseTemplate will dynamically add a scriptmanager to your page and keeps it in memory so a ScriptManager will only added once.
I can't read the exception complete but I think you need to inherit the AjaxBaseModuleControl (if that's the right name for it), the one you're using is a basecontrol for the template. You should use the one for module-controls.
An example module (extended gallery) will be added to the contrib-project when Cuyahoga 1.5.x is released. Otherwise it won't work (nHibernate mappings etc)
My intention is create threads through series of processes hidden to users, but the user has the possibility to cancel and view the status of implementation of the process.
Therefore to need Ajax, to have some system of progress bar. I'm going to the patch to work with nhiberntate version 1.2
Sorry for show my result error in spanish, I did not realise this detail.
Línea 352: private BaseModuleControl LoadModuleControl(ModuleBase module)
Línea 353: {
Línea 354: BaseModuleControl ctrl = (BaseModuleControl)this.LoadControl(UrlHelper.GetApplicationPath() + module.CurrentViewControlPath);
Línea 355: ctrl.Module = module;
Línea 356: return ctrl;
couse file: D:\Desarrollo\Web\UI\PageEngine.cs Línea: 354
this is line of the error.
where can find the example module (extended gallery), though show format to implement.
You can find the extended gallery on my Laptop :). But more seriously, send me a private message with your email address in it and I'll send you the gallery I'm working on and can be seen on my site. It is still not finished (far from that) but it may give you a direction to build your project. I'll send you it tonight, I don't have any internet connection on my laptop here.