This documentation is archived and is not being maintained.
UserControl.Request Property
Visual Studio 2010
Gets the HttpRequest object for the current Web request.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Web.HttpRequestThe HttpRequest object associated with the Page that contains the UserControl instance.
The following example uses the Request property to obtain the physical path of the user control. With an ID property set to myControl, the user control's location is obtained by a containing page or user control using the myControl.Request.Path syntax.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: