Tuesday 27 March 2012

Find Previous & Present browsing urls & IP Address , Browser Type & Browser Version.....

Previous URL  : http://yahoo/default.aspx

Present URL : http://yahoo/Home.aspx


Request.UrlReferrer.AbsoluteUri  it gives Previous URL i.e ( http://yahoo/Home.aspx )

Request.Url.AbsolutePath it gives Present URL i.e ( http://yahoo/default.aspx )

Request.ServerVariables("REMOTE_ADDR") it gives IP Address of the user Like (190.10.250.55)

HttpContext.Current.Request.Browser.Type it gives Browser type i.e IE,Firefox....(Firefox11.0)

HttpContext.Current.Request.Browser.Version it gives Browser Version Like( 11.0 )



No comments:

Post a Comment