Hello Everyone...
I want to store all browser information (like Browser type,Date and Time, location(Ip address) in to my database.
when someone hit my website it will automatically store all the information in the database.
Thank You
Ipsita Mishra
Loading
Joginder BangerPosted Nov 26, 2014, 2:11 AM
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s =
"Browser Capabilities\n" + "Type = " + browser.Type + "\n" +
"Name = " + browser.Browser +
"\n" + "Version = " + browser.Version +
"\n" + "Major Version = " + browser.MajorVersion +
"\n" + "Minor Version = " + browser.MinorVersion +
"\n" + "Platform = " + browser.Platform +
"\n" + "Is Beta = " + browser.Beta +
"\n" + "Is Crawler = " + browser.Crawler +
"\n" + "Is AOL = " + browser.AOL +
"\n" + "Is Win16 = " + browser.Win16 +
"\n" + "Is Win32 = " + browser.Win32 +
"\n" + "Supports Frames = " + browser.Frames +
"\n" + "Supports Tables = " + browser.Tables +
"\n" + "Supports Cookies = " + browser.Cookies +
"\n" + "Supports VBScript = " + browser.VBScript +
"\n" + "Supports JavaScript = " + browser.EcmaScriptVersion.ToString() +
"\n" + "Supports Java Applets = " + browser.JavaApplets +
"\n" + "Supports ActiveX Controls = " + browser.ActiveXControls + "\n";
and get a ip address
http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net
Manish Kumar ChoudharyPosted Nov 26, 2014, 4:29 AM
Hi Ipsita Mishra,
Read these links it may help you
http://madskristensen.net/post/get-language-and-country-from-a-browser-in-aspnet
http://www.plus2net.com/php_tutorial/php_ip.php
http://www.smashingmagazine.com/2011/03/23/speeding-up-your-websites-database/