This documentation is archived and is not being maintained.

MobilePage Property (MobileControl)

.NET Framework 1.1

Returns the containing page.

public System.Web.UI.MobileControls.MobilePage MobilePage {


The following is a list of the classes that inherit the MobilePage property from the MobileControl base class.

AdRotator Class Panel Class
Calendar Class PhoneCall Class
Command Class RangeValidator Class
CompareValidator Class RegularExpressionValidator Class
CustomValidator Class RequiredFieldValidator Class
Form Class SelectionList Class
Image Class StyleSheet Class
Label Class TextBox Class
Link Class TextControl Class
List Class TextView Class
ObjectList Class ValidationSummary Class
PagedControl Class  


This property is similar to the Web Forms Page property except that it is strongly typed.


The following example demonstrates how to the use the MobilePage property of the Label control.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'Returns the full path from a virtual directory
    Label1.Text = Label1.MobilePage.AbsoluteFilePath
End Sub

private void Page_Load(object sender, System.EventArgs e)
  //Returns the full path from virtual directory.
  Label1.Text = Label1.MobilePage.AbsoluteFilePath;

See Also

Applies to: MobileControl Class