UserControl.Request Property
Gets the HttpRequest object for the current Web request.
Assembly: System.Web (in System.Web.dll)
'Declaration <BrowsableAttribute(False)> _ Public ReadOnly Property Request As HttpRequest 'Usage Dim instance As UserControl Dim value As HttpRequest value = instance.Request
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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.