Export (0) Print
Expand All

ScriptManager.AddHistoryPoint Method (String, String)

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


Type: System.String

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

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

Supported in: 4.6, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft