Showing posts with label external. Show all posts
Showing posts with label external. Show all posts

Monday, March 26, 2012

UpdatePanel + Scriptmanger and Respone.Redirect to (external time consuming ressource)

Hello,

As the title of my post suggest, i use Response.Redirect(http://..../download.ahsx) on submit of my form;

This works fine. The file is streamed to the users browser and my update panel displays the " loading data gif".

The problem is that when the external page returns, we are not notified of this and we keep displaying the "loading data gif".

Is there a client side event i should process to refresh the starting page?

Thanks

/kadji

Is Ajax of any help in such of situation at all?

Thanks

/Kadji


Hi,

I'm afraid AJAX cann't do this.

As you said, when the external page returns, the starting page is not notified keep displaying the "loading data gif".

I suggest you use a timer to hide the "loading data gif" manually.

Best Regards


You are correct.

Thanks

/Kadji


But then what would i be looking for in my timer tick?

My web application still has no idea of what is happening in my remote resource.

Any suggestion?

/Kadji


Sorry,I mean javascript timer,not AJAX timer.

More information,seehttp://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/

Best Regards


Hi Jin-Yu Yin,

Could you explain how a client side timer would let me know that my http handler has finished running?

Thanks

/Kadji

Saturday, March 24, 2012

Updatepanel and an external webform

I was wondering if anyone knows how to update a panel with an external web form. For example, I am trying to find out how to let users load and external asp web form into a asp panel using the ajax updatepanel. The users will click a button and the desired page will load within the updatepanel's pane. I would like to be able to update profile information within this pane. I've seen several example on how to update server information, but is it possible to load external editable web forms into the pane?

Can someone please give me a direction to work with?

You could load the external webform into an <IFRAME> and then wrap the UpdatePanel around that. I'm not sure if that would do what you want, but using an IFRAME is definitely one way of loading an external page into the current page.

<body>
<formid="form1"runat="server">
<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>
<asp:UpdatePanelID="UpdatePanel1"runat="server">
<ContentTemplate>
<iframeid="iframe1"runat=serversrc="http://www.example.com/webform.aspx"></iframe>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>

Cheers,
Al

Wednesday, March 21, 2012

UpdatePanel and Outside Controls

if I have controls outside an updatepanel, i then fire an event inside the panel, is it possible to access those external controls from within an event fired from an updatepanel?

thanks.

Hi,

could you provide more details? Are you using a trigger to perform a partial postback? You want to access the external controls on server-side?

I have a dropdownlist placed outside an updatepanel, i have other buttons in an updatepanel, i want when i click on a button inside an update panel to be able to access the value selected in the dropdownlist, having all this done on the server side.

thanks