Solved

auto launch IE if using a different browser type

Posted on 2004-09-14
8
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 25

Expert Comment

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

-Nauman.
0
 
LVL 25

Expert Comment

by:nauman_ahmed
ID: 12058760
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
ID: 12058931
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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:matthersjr
ID: 12058954
can't get it to work
0
 
LVL 15

Accepted Solution

by:
Timbo87 earned 500 total points
ID: 12058968
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
ID: 12059040
i can't get to work in ie; get an error
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12059489
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
ID: 12059492
woops. got caught :D....
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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