Solved

auto launch IE if using a different browser type

Posted on 2004-09-14
8
272 Views
Last Modified: 2008-03-03
Is it possible to auto launch IE if the client is using another browser - say netscape? I'm writing in asp.net

Dim bc As HttpBrowserCapabilities = Request.Browser
MyLabel.Text = "Platform: "& request.Browser.Platform & " -- Browser: " & bc.Browser & "**** use IE ****"

I'm presumming the platform is Windows and using the default path.
Now do the auto launch of IE
C:\Program Files\Internet Explorer\IEXPLORE.EXE/'http://127.0.0.1/test.aspx

Any Ideas?
0
Comment
Question by:matthersjr
8 Comments
 
LVL 25

Expert Comment

by:nauman_ahmed
Comment Utility
I dont think that it will be allowed unless you write a VBS for it.

-Nauman.
0
 
LVL 25

Expert Comment

by:nauman_ahmed
Comment Utility
Try the following:

Set IE = createobject ("InternetExplorer.Application")

with IE .left=200
.top=200
.height=500
.width=500
.menubar=0
.toolbar=0
.statusbar=0
.navigate "http:<Insert web-page here!>"
.visible=1
end with


-Nauman
0
 

Author Comment

by:matthersjr
Comment Utility
here is what I've got:

---
Sub Page_Load(Sourec As Object, E As EventArgs)
            If Not IsPostBack Then
                  If Request.Browser.Browser = "IE" Then
                        If Request.Browser.MajorVersion < 6 Then
                              MyLabel.Text = "Upgrade"
                        Else
                              MyLabel.Text = "Up to date"
                        End If
                  Else
                        Dim bc As HttpBrowserCapabilities = Request.Browser
MyLabel.Text = "Platform: "& request.Browser.Platform & " -- Browser: " & bc.Browser & "**** use IE ****"
'now do the auto launch of ie
'C:\Program Files\Internet Explorer\IEXPLORE.EXE/'http://tp0841/dev/wroxaspnet/chp10/browsercheck.aspx
                              Set IE = createobject ("InternetExplorer.Application")
                                    with IE .left=200
                                    .top=200
                                    .height=500
                                    .width=500
                                    .menubar=0
                                    .toolbar=0
                                    .statusbar=0
                                    .navigate "http://127.0.0.1/test.aspx"
                                    .visible=1
                                    end with
                  End If
            Else
                  MyLabel.Text = "post back"
            End If
End Sub
0
 

Author Comment

by:matthersjr
Comment Utility
can't get it to work
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 15

Accepted Solution

by:
Timbo87 earned 500 total points
Comment Utility
The irony of nauman_ahmed's solution is that it will only work in Internet Explorer. :) There is no way to do it automatically.
0
 

Author Comment

by:matthersjr
Comment Utility
i can't get to work in ie; get an error
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
Comment Utility
starting an IE browser is as good as starting an application/program/exe in the remote client computer. For obvious sequrity reasons, it is NOT possible. Just like, you can not start a PROCESS in asp.net.
-Baan
0
 
LVL 25

Expert Comment

by:nauman_ahmed
Comment Utility
woops. got caught :D....
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now