This is a migrated thread and some comments may be shown as answers.

Response.Redirect and AjaxLoadingPanel

3 Answers 216 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
FlyFish
Top achievements
Rank 1
FlyFish asked on 21 Nov 2008, 09:37 AM

Hi,

have a button in RadAjaxPanel. On OnClickEvent there is Response.Redirect (to a file in network share). The problem I have is that after Response.Redirect the LoadingPanel still appears on the page. Any ideas?

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 21 Nov 2008, 12:51 PM
Hi,

I tested similar scenario like yours but was not able to isolate the problem locally.

Could you please ensure that the RadAjaxLoadingPanel is not added to the RadAjax settings as Ajax initiator or updated control? Also please verify if the ResponseEnd event for the Ajax fires when the redirect finishes.

Sincerely yours,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Barry
Top achievements
Rank 1
answered on 02 Mar 2009, 10:17 PM
I'm having this same experience. I have a download button in a GridButtonColumn with code that looks like this:

 protected void grid_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Download") 
        { 
            // Get the information about the file requested 
            int itemIndex = e.Item.ItemIndex; 
            int unitId = Int32.Parse(downloadGrid.Items[itemIndex]["UnitId"].Text); 
            string unitName = downloadGrid.Items[itemIndex]["UnitName"].Text; 
 
            // Redirect to the download 
            Response.Redirect("LoopConfigurationDownloadProcess.aspx?UnitId=" + 
                unitId + "&UnitName=" + unitName); 
        } 
    } 
When the download button is clicked I get the Ajax Loading Image. The Open / Save dialog opens and I save. Everything works except that the Ajax Loading Image doesn't close.


0
Iana Tsolova
Telerik team
answered on 05 Mar 2009, 11:09 AM
Hello Barry,

Please review the below articles on how to download files and redirect to another page with RadAjax. Try following the suggestions there and let me know if any issues arise.

http://www.telerik.com/help/aspnet-ajax/ajxdownload.html
http://www.telerik.com/help/aspnet-ajax/ajxredirectingtoanotherpage.html

All the best,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
FlyFish
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Barry
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or