UpdateControls: UpdateHistory and AnimatedUpdatePanel
- Posted: Feb 05, 2007 at 12:28 PM
- 20,196 Views
- 4 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- Mid Quality WMV (Lo-band, Mobile)
Specifically, this video demonstrates two controls in action: UpdateHistory and AnimatedUpdatePanel. Both work well with the UpdatePanel and partial rendering feature in ASP.NET AJAX.
UpdateHistory enables back button support. AnimatedUpdatePanel allows visually appealing subtle transitions when page content is updated. For more details, check out the blog post...
Nikhil
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Does this just inherit from System.Web.UI.UpdatePanel?
There is no audio for this video...
I tried using the UpdateHistory control, but it didn't work.
The e.EntryName object had an empty string value.
I just had a simple default.aspx page and page2.aspx page with two controls. A textbox and Button on Default.aspx and page2.aspx had a textbox.
When going to page2, the value was in the textbox. When going back to default.aspx (via the Back button in the browser), the form data value originally in this page was gone.
See my below code:
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<nStuff:UpdateHistory ID="UpdateHistory1" runat="server" OnNavigate="OnUpdateHistoryNavigate">
</nStuff:UpdateHistory>
<nStuff:AnimatedUpdatePanel ID="AnimatedUpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</nStuff:AnimatedUpdatePanel>
<div>
</div>
</form>
private Sub OnUpdateHistoryNavigate(ByVal sender As Object, ByVal e As HistoryEventArgs)
' Raised when the user navigates back/forward or
' loads a bookmark to a specific view.
' Use the history entry name to determine the
' selected index and update the page.
If String.IsNullOrEmpty(e.EntryName) = False Then
TextBox1.Text = e.EntryName.ToString
End If
AnimatedUpdatePanel1.Update()
End Sub
Another point... If you do help me to get it to work, wouldn't I have to run a similiar "If" statement for EACH control on the page in order to repopulate the data? If this is the case, it seems awfully arduous and tedious to do this. It probably won't be feasible with all the controls that can exist on a page.
Remove this comment
Remove this thread
close