C# Class Subtext.Web.Controls.ScrollPositionSaver

Non-Visible control used to save and restore scroll position within a page after a postback. Just drop it on a page and you are good to go.
Adapted from
Inheritance: System.Web.UI.Control
Show file Open project: ayende/Subtext

Private Properties

Property Type Description

Public Methods

Method Description
ScrollPositionSaver ( ) : System

Initializes a new instance of the ScrollPositionSaver class.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Registers hidden fields and the script for handling scroll position.

Render ( System.Web.UI.HtmlTextWriter writer ) : void

Ensures this is being rendered within a Web Form. If not, this raises an exception.

Method Details

OnInit() protected method

Registers hidden fields and the script for handling scroll position.
protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

Render() protected method

Ensures this is being rendered within a Web Form. If not, this raises an exception.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the server control content.
return void

ScrollPositionSaver() public method

Initializes a new instance of the ScrollPositionSaver class.
public ScrollPositionSaver ( ) : System
return System