This documentation is archived and is not being maintained.

AbsoluteFilePath Property

.NET Framework 1.1

Gets a rooted URL to the same page.

public string AbsoluteFilePath {


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.


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 =       

End Sub

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