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

Can't get browser back button to work right with Prometheus

4 Answers 228 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 24 Apr 2007, 09:37 PM

Anyone tried to get the browser back button to work with the Prometheus release yet?

I can't do it... Perhaps I'm missing something.

Here's what I've done.

-- Install the ASP.NET AJAX framework, and the ASP.NET AJAX extensions.

-- Install the Prometheus release

-- Build an ASP.NET Ajax-enabled website that contains two pages: Default.aspx and Error.htm

-- On Default.aspx, I add a button (Button1), a regular ASP.NET Panel (Panel1), and the new Prometheus AjaxManager (whose seemingly relevant properties are as follows: EnablePageHeadUpdate=True; EnableAjax=True; EnableHistory=True; EnableViewState=True; also I do NOT set any ClientEvents).

-- I also add another Button (Button2) (more on what that does in a second).

-- In the AjaxManager configurator, I set Button1 as the control that fires the Ajax request, and Panel1 as the control that receives the request. In my code behind, for the Button1 click event, I simply add a control (a button, but it could be anything). I'll call this the "code-added control".

-- I click on Button1, and the "code-added control" (a button, but again, could be anything) is loaded into the Panel, using Ajax of course.

-- For the Button2 (which is not associated with Ajax manager), I have a code-behind click event that will either use Server.Transfer or Response.Redirect (I've tried both) to cause the application to transfer / redirect to Error.htm (this models what my real application will do when an error is encountered).

-- I click on Button2, which transfers / redirects me to the Error.htm page. From here, I would expect that I could use the browser back button to navigate back to Default.aspx, and once there I would expect to see my "code-added control" still visible in Panel1. But it is not!

Am I doing something wrong? Based on prior communication I've received from Telerik, I understood that Prometheus would have allowed me to see that "code added control" in Panel1.

Thanks,

Ken Morris 

4 Answers, 1 is accepted

Sort by
0
Johan
Top achievements
Rank 1
answered on 25 Apr 2007, 05:07 AM
UpdatePanel by default does not support Back browser buttons. There is a custom control called UpdateHistory which can be used for that- it can be downloaded separately from

http://www.nikhilk.net/UpdateControls.aspx
http://weblogs.asp.net/scottgu/archive/2007/02/06/asp-net-ajax-goodies-documentation-download-back-button-support-new-animation-control.aspx

I am not sure how they play with rad Ajax Prometheus... this is a good question for another thread. Also, what does the EnableHistory property do? No information is available on that in the docs and I see no examples with it...
0
Vlad
Telerik team
answered on 25 Apr 2007, 08:14 AM
Hello Ken ,

Indeed you are right. It seems that this is still unhandled scenario and we will do our best to cover this.

Johan, EnableHistory is designed to provide internal ajax history support similar to traditional post-backs history. Once we test this feature in as many as possible scenarios we will add relevant examples and documentation.

Sincerely yours,
Vlad
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
surfer
Top achievements
Rank 1
answered on 25 Apr 2007, 08:23 AM
that's cool... one of the problems with updatepanel is that it requires add-ons like history for back buttons, animation for transition effect etc (whcih are not part of the official suite and not supported)

it will be very cool if you manage to add history, animation suppotr built-in with just properties... and support that. could be a killer product.

you also may want to a add an easy way to switch the default tag of the updatepanel - div is a block element and may screw layouts, there shuold be an easy way with the ajax manager to use span instead of div... also, an easy way to add cssclass to the panel..
0
Vlad
Telerik team
answered on 25 Apr 2007, 09:06 AM
Hello surfer,

Thank you very much for the feedback. We will do all these for sure in one of the subsequent versions of the product.

And keep posting - we are listing as always.

All the best,
Vlad
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Ken
Top achievements
Rank 1
Answers by
Johan
Top achievements
Rank 1
Vlad
Telerik team
surfer
Top achievements
Rank 1
Share this question
or