Cancelado

ASP.NET : Adding trigger for AJAX Update Panel Programatically from Server Control

As you know that, FileUpload Control is not supported by ASP.NET AJAX Update Panel. We need to use Triggers to make the FileUpload work within Update Panel.

Now, I have an ASP.NET Composite Server Control which has FileUplod in it. So, I want that, when an user place my control within an AJAX update panel, the control will check the PARENT property of it and check if it is an AJAX Update Panel, programatcally add Trigger for this control so that FileUpload works within this Update Panel without my control user worry about changing any code in their ASPX page. Everything should be done within the Server Control and I want my user only to drag and drop the contol into their AJAX Update panel and ready to go. PLEASE NOTE : THIS IS THE MOST IMPORTANT INSTRUCTION TO BE FOLLOWED : "NO CODE FIX FROM OUTSIDE THE CONTROL... NOTHING SHOULD BE INSTRUCTED TO CHANGE IN ASPX PAGE". PURELY PROGRAMATIC SOLUTION REQUIRED THAT WILL BE EXECUTED FROM SERVER CONTROL.

I dont need asynchronous file upload functionality but adding trigger will atleast allow this control to work within UpdatePanel even though it will be synchronous post, still OK for me.

Please note, The code should be smart to dedect if any of its parent or parent's parent is AJAX Update Panel. If so only then add trigger otherwise it should not throw any Exception. That means, If I use this control without AJAX Update Panel, it should work properly, it should not only work for Update Panel.

Regards.

NB: This project is reposted part by part of a previously posted project in GAF. I had 3 TASKs in previous project, now I made 3 separate postings for every parts.
---------------------------------------------------------------------

Habilidades:

Ver mais: trigger ajax, ajax trigger, use trigger ajax, triggers ajax, updatepanel synchronous, updatepanel dynamic trigger, add trigger updatepanel, updatepanel add trigger, add updatepanel trigger programatically, programatically trigger update panel, ajax update trigger, programatically add ajax aspnet controlls, trigger updatepanel, use ajax triggers, file upload updatepanel, programatically add updatepaneltrigger, add trigger asp, add trigger panel, ajax panel trigger, updatepanel triggers, ajax triggers, programatically add trigger updatepanel, updatepanel programatically, net by need, fix it for me

Acerca do Empregador:
( 14 comentários ) Whitby, Canada

ID do Projeto: #151117