[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

inform user that only Internet Explorer can be used to access system

Posted on 2006-05-14
8
Medium Priority
?
441 Views
Last Modified: 2011-09-20
My system requires only Internet Explorer to be used, other browsers like Mozilla/Opera cannot be supported.

I need to check if user uses IE browser. Else, i need to popup a message to inform user that only Internet Explorer can be used to access the system. How can I do the checkings ?

Please help on the codes. Thanks.
0
Comment
Question by:nwhan
  • 5
  • 3
8 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 16678155
Hi nwhan,

1. You could look it up in the registry at the HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer.
2. If the key exists, IE is installed on the computer. To see if it is the default handler you can check the HKEY_CLASSES_ROOT\htmlfile to see the name, that will probably be "HTML document" and check out "HKEY_CLASSES_ROOT\htmlfile\shell\open\command".
3. If the key contains "iexplore.exe" you know that IE is also the default browser.

if 1 or 3 is negative then you can show a message

hope this helps a bit
bruintje
0
 
LVL 44

Expert Comment

by:bruintje
ID: 16678260
for code to check on ie installed

add these 2 in the top of your form
---------
Imports Microsoft.Win32.Registry
Imports Microsoft.Win32
---------

and this is the button code i used

---------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Dim regKey As RegistryKey
  Try
    regKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Internet Explorer", True)
    regKey.Close()
  Catch ex As Exception
    MessageBox.Show("Internet Explorer was not found on this machine")
  Finally

  End Try

End Sub
---------

hope this helps a bit
bruintje
0
 
LVL 1

Author Comment

by:nwhan
ID: 16678890
Sorry if my question is abit blur or incomplete.
I have a web-based system that supports only Internet Explorer.
Therefore, if a user accesses the system using other browser like Firefox or Opera, the page should display a message telling user that "Other browser has been detected other than IE. Please use only IE to access the system."

Please help. Thanks.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Expert Comment

by:bruintje
ID: 16679980
this is ASP.NET?
0
 
LVL 1

Author Comment

by:nwhan
ID: 16680228
Really ?
Anyway I am using Microsoft Visual Studio (VB.NET)
So is this VB.NET or ASP.NET ? Whats the difference ?
0
 
LVL 44

Expert Comment

by:bruintje
ID: 16680329
no i was asking :)

the code i gave checked if IE was installed or not in VB

but then you said:
>>the page should display a message telling user that "Other browser has been detected other than IE. Please use only IE to access the system."

so i assumed the page was a webpage and you used ASP for the webpage and i used a windows form to prepare the code
0
 
LVL 1

Author Comment

by:nwhan
ID: 16680410
Sorry for not mentioning that it's a web-based system. So how can i perform the checkings and notify user to use only IE ? Help please. Thanks.
0
 
LVL 44

Accepted Solution

by:
bruintje earned 120 total points
ID: 16680964
web things are not my strongest point, there is an article here going over a few methods of browser detection
http://www.4guysfromrolla.com/webtech/121400-1.shtml

if that still doesn't help, maybe deleting the question here and asking it again in the ASP.NET TA would yield better help
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question