Freelancer

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

ASP.NET : Programatically adding trigger for AJAX Update Panel from Server Control is project number 170599
posted at Freelancer.com. Click here to post your own project.


| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-100

Created: 09/03/2007 at 5:48 EDT

Bid Count: 6

Average Bid:
N/A

09/10/2007 at 5:48 EDT

Project Creator: spgroup
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (15 reviews)

Bid On This Project
 

Description

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 or some other control which is placed within AJAX Update Panel. For example, the Control may be placed within the EDIT Template or INSERT Template of GRIDVIEW Control or DETAILSVIEW Control and the GridVIEW or DetailesView control can be placed within the AJAX Update panel.

So, as a coder you need to add Trigger programatically by searching the parent control tree and add necessary parameter like "GridView1:MyUploadControl" or "GridView1:Pane1:MyUploadControl" for this control so that FileUpload works within this AJAX 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.

Messages Posted:3 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project