Assembly: System.Web (in System.Web.dll)
The class allows controls to emit client-side script that initiates a postback event. The class also provides a reference to the control that initiated the postback event through the TargetControl property. The postback event is created based on the options specified in the object passed in to the ClientScriptManager::GetPostBackEventReference method.
The following code example uses the OnClick event of a Button control to generate client-side script for a HyperLink control that will allow the HyperLink control to cause a postback event. Because the ActionUrl property of the myPostBackOptions object is set to "Page2.aspx", the postback will post the Web Forms page to another page named "Page2.aspx", which is not provided here. To use this example, you must add another Web page named "Page2.aspx" to your project or directory.
The following code example is a Web page that can be used to run the preceding code-behind file.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.