AbsoluteFilePath Property
Gets a rooted URL to the same page.
public string AbsoluteFilePath {
get
}
Remarks
A rooted URL is absolute with respect to the server, but is not a complete URL because it does not include the protocol prefix or server name.
Example
The following example demonstrates how to use the AbsolutePath property to retrieve the absolute path information from a mobile page.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Returns the full path from virtual directory Label1.Text =
Label1.MobilePage.AbsoluteFilePath
End Sub
[C#]
private void Page_Load(object sender, System.EventArgs e)
{
//Returns the full path from virual directory.
Label1.Text = Label1.MobilePage.AbsoluteFilePath;
}
See Also
Applies to: MobilePage Class