gosonic
asked on
How to get the browser version with vb.net 2003
vb.net 2003 (windows forms)
I am using
IEs As New SHDocVw.ShellWindows
IE As SHDocVw.InternetExplorer
How do I determine which version of IE is being used here? With the new IE7 beta being released it is important that I know if the user has upgraded.
Thanks
I am using
IEs As New SHDocVw.ShellWindows
IE As SHDocVw.InternetExplorer
How do I determine which version of IE is being used here? With the new IE7 beta being released it is important that I know if the user has upgraded.
Thanks
Dear gosonic,
Its very simple to write a code for getting browser information. All you need to do is using the HttpBrowserCapabilities class provided in .NET framework.
Following is the code sample.
Dim bc as HttpBrowserCapabilities
bc = Request.Browser
Response.Write("Type = " + bc.Type + "<br>");
Response.Write("Name = " + bc.Browser + "<br>");
Response.Write("Version = " + bc.Version + "<br>");
Let me know if you face any problems or if you require further information.
Regards,
Me
Its very simple to write a code for getting browser information. All you need to do is using the HttpBrowserCapabilities class provided in .NET framework.
Following is the code sample.
Dim bc as HttpBrowserCapabilities
bc = Request.Browser
Response.Write("Type = " + bc.Type + "<br>");
Response.Write("Name = " + bc.Browser + "<br>");
Response.Write("Version = " + bc.Version + "<br>");
Let me know if you face any problems or if you require further information.
Regards,
Me
...well, since you're obviously doing this locally, my vote would be to get the installed version of ie from the registry. However, i found this example that also explains the use of shdocvw.dll (which is still valid for ie 6 versions). The example is in c, but it should give you enough to go in in vb.net. Let me know, however, if the link doesn't provide enough info and i'll work it out for you. : )
http://www.codeproject.com/shell/detectie.asp
wil
http://www.codeproject.com/shell/detectie.asp
wil
ASKER
Headspace,
Yes I am doing it locally and I think your approach will work but I do need assistance in doing in VB.net I don't have any experience in c and don't know how to go about reading those vaules in VB.net - I will appreciate your help on this.
Thanks
Yes I am doing it locally and I think your approach will work but I do need assistance in doing in VB.net I don't have any experience in c and don't know how to go about reading those vaules in VB.net - I will appreciate your help on this.
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
This is good thank you.
look this code
http://support.microsoft.com/default.aspx?scid=kb;en-us;311281
i think thats help you
Raj