UserControl.MapPath Method (String)
.NET Framework (current version)
Assigns a virtual file path, either absolute or relative, to a physical file path.
Assembly: System.Web (in System.Web.dll)
Parameters
- virtualPath
-
Type:
System.String
The virtual file path to map.
While similar to the Page.MapPath method, this method maps the path from the .ascx file's location, not the .aspx file's location. You can use this method to obtain a path to a directory of images or other resources associated with your UserControl object.
.NET Framework
Available since 1.1
Available since 1.1
Show: