Hi,
I need current browser details in Asp.Net Core like :
Name, Version, IPAddress, Current URL
I am using razor page.
Please Help.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Piyush PansuriyaPosted Sep 13, 2018, 12:32 AM
Imtiyaz AnsariPosted Sep 12, 2018, 8:07 AM
UserAgent is nothing just a propertie class for set browser info deatils.
Ex.
Piyush PansuriyaPosted Sep 12, 2018, 5:26 AM
Imtiyaz AnsariPosted Sep 12, 2018, 4:28 AM
Try With below example.
//-----------------------------------------
//---------------------------------------------------------------------------------
OS
name:@Model.OS.Name
version:@Model.OS.Version
Browser
name:@Model.Browser.Name
version:@Model.Browser.Version
major:@Model.Browser.Major
https://code.msdn.microsoft.com/How-to-get-OS-and-browser-c007dbf7#content
Sakthivel GanesanPosted Sep 12, 2018, 4:23 AM
url:@[email protected]