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

[Solved] using httphandler with ajax

1 Answer 119 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Vanika
Top achievements
Rank 1
Vanika asked on 22 Jul 2009, 11:56 AM
Hi,

I have .aspx page, CreateData.aspx, which has  .net gridview, named gridViw1, in which i have a linkbutton. On clicking the linkbutton, I need to redirect to a httphandler class, which would open a filedownload popup. During this time, till the download box appears, the previous page should be in callbacl, or show the "Loading" image, and once the dialog box appears, the previous page should be visible in the backgroud.

I have the following code on this page

<

 

radA:RadAjaxManager ID="radAjaxManager" runat="server">

<

 

radA:AjaxSetting AjaxControlID="linkButton1" >

 

 

<UpdatedControls >

 

 

<radA:AjaxUpdatedControl ControlID="grid" LoadingPanelID="LoadingPanel1" />

 

 

<radA:AjaxUpdatedControl ControlID="divGrid" LoadingPanelID="LoadingPanel1" />

 

 

<radA:AjaxUpdatedControl ControlID="ValidationMessagePanel" />

 

 

</UpdatedControls>

 

 

</radA:AjaxSetting>

 

 

</ajaxsettings>
</
radA:RadAjaxManager>

The follwoing code is executed on clicking the linkbutton1

 

Response.Redirect(

"DataHandler.aspx", false);

 

 


My problem is once the httphandler finishes execution, the page CreateData.aspx is still shows "Laoding".
But if i remove ajaxmamanager from this page, it works as expected. But ajaxmanager is required due to some other requirements on the page.

Please suggest how this can be managed.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 27 Jul 2009, 08:30 AM
Hi Vanika,

One possible option in this setup would be to hide and show the loading panel explicitly, as demonstrated in the following article:

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

I hope this suggestion helps.

Best wishes,
Yavor
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
Vanika
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or