More in this section

Forums / Developing with Sitefinity / Download Dynamic File with Ajaxified Control

Download Dynamic File with Ajaxified Control

3 posts, 0 answered
  1. Richard
    Richard avatar
    14 posts
    Registered:
    23 Apr 2012
    02 May 2012
    Link to this post
    Hi,

    I am using the RadScheduler control along with a custom AdvancedForm template.  Part of that template is a button that I want to cause a dynamically generated .ics file to be downloaded.  This file can then be opened to add the calendar event to the user's Outlook calendar.  My problem is that the button is being ajaxified by the RadAjaxManager.  I have gotten around it using the code found in this piece of documentation but it feels forced to me.

    http://www.telerik.com/help/aspnet-ajax/ajax-force-controls-to-postback.html 

    I was curious if there has been a better way to do this implemented since this page was written.

    Thanks,
    Richard
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    03 May 2012
    Link to this post
    I did this exact thing with a simple ashx file...so the events in the scheduler just need to have a simple link to the ashx, pass along some querystrings like your eventID, return the .ics
  3. Richard
    Richard avatar
    14 posts
    Registered:
    23 Apr 2012
    04 May 2012
    Link to this post
    Thanks, I'm going to have to consider which I want to implement for production before I decide but it's unfortunate that there doesn't seem to be an easier way to designate excluded controls from the AjaxManager.
3 posts, 0 answered