Latest web development tutorials

ASP.NET Page Properties

Control Standard Properties Reference Control Standard Properties Reference

Definition and Usage

Page Gets a reference to the property containing the control Page instance. The value of this property reflects the name of the .aspx file that contains the control.


Examples

The following example displays a Button control Page:

<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
Response.Write("The Page containing the button is: ")
Response.Write(button1.Page)
End Sub
</script>

<form runat="server" >
<asp:Button ID="button1" OnClick="Button1_Click"
Text="Get Page" runat="server" />
</form>

The demonstration >>

Control Standard Properties Reference Control Standard Properties Reference