MobilePage | .NET 1.1, disposable |
System.Web.UI.MobileControls (system.web.mobile.dll) | class |
The MobilePage class is the base class for all the
mobile pages you create. It derives from the base ASP.NET web form
page System.Web.UI.Page class. Some of most
important properties include those that deal with the
Form controls on the page. These include the
ActiveForm property, which provides the ability to
determine (or set) the active Form, and
Forms, which returns a collection with all the
Form instances on a page.
When you create a new mobile page in Visual Studio .NET, a new class
will be derived from MobilePage. Any code you add
to handle control events will be placed inside this class.
public class MobilePage : System.Web.UI.Page {
// Public Constructors
public MobilePage( );
// Public Static Fields
public static readonly string HiddenPostEventArgumentId; // =_ _EVENTARGUMENT
public static readonly string HiddenPostEventSourceId; // =_ _EVENTTARGET
public static readonly string HiddenVariablePrefix; // =_ _V_
public static readonly string PageClientViewStateKey; // =_ _P
public static readonly string ViewStateID; // =_ _VIEWSTATE
// Public Instance Properties
public string AbsoluteFilePath{get; }
public Form ActiveForm{set; get; }
public IPageAdapter Adapter{get; }
public bool AllowCustomAttributes{set; get; }
public string ClientViewState{get; }
public bool DesignMode{get; }
public virtual MobileCapabilities Device{get; }
public IList Forms{get; }
public IDictionary HiddenVariables{get; }
public string QueryStringText{get; }
public string RelativeFilePath{get; }
public StyleSheet StyleSheet{set; get; }
public string UniqueFilePathSuffix{get; }
// Public Instance Methods
public virtual IControlAdapter GetControlAdapter(MobileControl control);
public Form GetForm(string id);
public object GetPrivateViewState(MobileControl ctl);
public bool HasHiddenVariables( );
public string MakePathAbsolute(string virtualPath);
public void RedirectToMobilePage(string url);
public void RedirectToMobilePage(string url, bool endResponse);
public override void Validate( ); // overrides System.Web.UI.Page
public override void VerifyRenderingInServerForm(System.Web.UI.Control control); // overrides System.Web.UI.Page
// Protected Instance Methods
protected override void AddedControl(System.Web.UI.Control control, int index); //overrides System.Web.UI.Control
protected override void AddParsedSubObject(object o); // overrides System.Web.UI.Control
protected override HtmlTextWriter CreateHtmlTextWriter(System.IO.TextWriter writer); // overrides System.Web.UI.Page
protected override NameValueCollection DeterminePostBackMode( ); // overrides System.Web.UI.Page
protected override void InitOutputCache(int duration, string varyByHeader, string varyByCustom,
System.Web.UI.OutputCacheLocation location, string varyByParam); // overrides System.Web.UI.Page
protected override object LoadPageStateFromPersistenceMedium( );// overrides System.Web.UI.Page
protected override void LoadViewState(object savedState); // overrides System.Web.UI.Control
protected virtual void OnDeviceCustomize(EventArgs e);
protected override void OnError(EventArgs e); // overrides System.Web.UI.TemplateControl
protected override void OnInit(EventArgs e); // overrides System.Web.UI.Control
protected override void OnLoad(EventArgs e); // overrides System.Web.UI.Control
protected override void OnPreRender(EventArgs e); // overrides System.Web.UI.Control
protected override void OnUnload(EventArgs e); // overrides System.Web.UI.Control
protected virtual void OnViewStateExpire(EventArgs e);
protected override void RaisePostBackEvent(System.Web.UI.IPostBackEventHandler sourceControl,
string eventArgument); // overrides System.Web.UI.Page
protected override void RemovedControl(System.Web.UI.Control control);// overrides System.Web.UI.Control
protected override void Render(System.Web.UI.HtmlTextWriter writer);// overrides System.Web.UI.Control
protected override void SavePageStateToPersistenceMedium(object view);// overrides System.Web.UI.Page
protected override object SaveViewState( ); // overrides System.Web.UI.Control
}
Hierarchy
System.Object
System.Web.UI.Control(System.ComponentModel.IComponent,
System.IDisposable,
System.Web.UI.IParserAccessor,
System.Web.UI.IDataBindingsAccessor)
System.Web.UI.TemplateControl(System.Web.UI.INamingContainer)
System.Web.UI.Page(System.Web.IHttpHandler)
MobilePage
Subclasses
ErrorFormatterPage
Returned By
System.Web.UI.MobileControls.Adapters.ControlAdapter.Page,
System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.Page,
DeviceSpecific.MobilePage,
IControlAdapter.Page,
IPageAdapter.Page,
MobileControl.MobilePage
Passed To
System.Web.UI.MobileControls.Adapters.ControlAdapter.Page,
System.Web.UI.MobileControls.Adapters.UpWmlMobileTextWriter.UpWmlMobileTextWriter(
),
System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter.WmlMobileTextWriter(
), IPageAdapter.Page
|