UserControl::Request Property

 

Gets the HttpRequest object for the current Web request.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
[BrowsableAttribute(false)]
property HttpRequest^ Request {
	HttpRequest^ get();
}

Property Value

Type: System.Web::HttpRequest^

The 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: