ScriptManager::AddHistoryPoint Method (String^, String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a history point and adds it to the browser's history stack, using the specified state key and state value.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
void AddHistoryPoint(
	String^ key,
	String^ value
)

Parameters

key
Type: System::String^

The key part of the key/value pair that identifies the state of the Web page.

value
Type: System::String^

The value part of the key/value pair that identifies the state of the Web page.

Use this method to create a history point when you only want to save a value to identify the state. When you create a history point, serialized and encrypted data is appended to the URL of the Web page and an entry is included in the browser's history stack. The title of the Web page is used as the title of the state entry in the history stack.

You can use the state data to re-create the page when any subsequent server navigation event is raised. For more information, see Managing Browser History Using ASP.NET Server Controls.

.NET Framework
Available since 3.5
Return to top
Show: