James Hollingworth’s Adventures in Code

Icon

Monorail: Get client’s browser

For future reference, to get the clients browser:

    $Context.UnderlyingContext.Request.Browser.Browser

This is infact accessing the HttpRequest.Browser property so you can then get all the usual info like browser version:

    $Context.UnderlyingContext.Request.Browser.MajorVersion

Hope this helps someone!

Filed under: .net, castleproject, monorail, nvelocity ,

Leave a Reply