Gets a reference to the Page instance that contains the server control.
System.Web (in System.Web.dll)
Public Overridable Property Page As Page
This property's value reflects the name of the .aspx file that contains the server control.
The following example overrides the Control.Render method. It uses the Page property to access the Page.IsPostBack property and determine whether the page that contains this control has just been loaded for the first time or is the result of a postback.
Protected Overrides Sub Render(output As HtmlTextWriter)
output.Write("Welcome to Control Development!<br>")
' Test if the page is loaded for the first time
If Not Page.IsPostBack Then
output.Write("Page has just been loaded")
output.Write("Postback has occured")
Return to top
Available since 1.1