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
Afficher le fichier Open project: ayende/Subtext

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ScrollPositionSaver ( ) : System

Initializes a new instance of the ScrollPositionSaver class.

Méthodes protégées

Méthode 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 méthode

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

Render() protected méthode

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.
Résultat void

ScrollPositionSaver() public méthode

Initializes a new instance of the ScrollPositionSaver class.
public ScrollPositionSaver ( ) : System
Résultat System