Page Request Properties

Last Updated 12/9/2015
The page request properties available
Our pages have the following properties and methods

Request.Friendly
Get the friendly name for the current page
<div>@Request.Friendly</div>

Request.RawUrl
Returns the requested URL
<div>@Request.RawUrl</div>
 
Request.UrlSegments
The URL segments are the parts of the URL after the friendly and before the query string.
  • Request.UrlSegments.Length returns the number or URL segments starting at 0
  • Request.UrlSegments[0] gets the first URL Segment
Request.UserAgent
Returns the browser user-agent
<div>@Request.UserAgent</div>

Request.QueryString
Get the value for the query string key specified
<div>@Request.QueryString["name"]</div>
 

Article Topics

For Developers

Want to learn more?

Call 800-924-5220 or

Free trial