ASP.NET Page Property


Control Standard Properties Reference Complete Control Standard Properties Reference

Definition and Usage

The Page property is a reference to the page that contains the control.


Example

The following example shows the Page that contains the button control:

<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>

Show example »

Control Standard Properties Reference Complete Control Standard Properties Reference

Color Picker

colorpicker