473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

New browser window

I have done this loads of time, but need a reminder - how do i load up a new
browser window from code?

(Brain is fried - i have been doing Winforms!)

Guy
Nov 1 '07 #1
8 1528
"guy" <gu*@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
>I have done this loads of time, but need a reminder - how do i load up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)
JavaScript...

window.open(.........);
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #2
sorry I did not make myself clear, i mean in VB.NET

Guy

"Mark Rae [MVP]" wrote:
"guy" <gu*@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
I have done this loads of time, but need a reminder - how do i load up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #3
"guy" <gu*@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
>"guy" <gu*@discussions.microsoft.comwrote in message
news:A5**********************************@microso ft.com...
>I have done this loads of time, but need a reminder - how do i load up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);
sorry I did not make myself clear, i mean in VB.NET
You obviously can't open browser windows server-side...

You need to use client-side JavaScript, though you can make your server-side
code send the necessary JavaScript down to the client...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #4
This I think off the top of my head
Page.ClientScript.RegisterStartupScript(me.GetType (),"open","window.open('http://www.microsoft.com','','height=400,width=300');",tr ue)

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"guy" <gu*@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
>I have done this loads of time, but need a reminder - how do i load up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

Guy

Nov 1 '07 #5
Hmm, I have done it before, there is a command that you pass a URL and an
Enum to which allows you to fire up an new Browser instance, redirect in the
current instance etc...

Guy

"Mark Rae [MVP]" wrote:
"guy" <gu*@discussions.microsoft.comwrote in message
news:0E**********************************@microsof t.com...
"guy" <gu*@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...

I have done this loads of time, but need a reminder - how do i load up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);
sorry I did not make myself clear, i mean in VB.NET

You obviously can't open browser windows server-side...

You need to use client-side JavaScript, though you can make your server-side
code send the necessary JavaScript down to the client...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #6
"guy" <gu*@discussions.microsoft.comwrote in message
news:A1**********************************@microsof t.com...
>I have done this loads of time, but need a reminder - how do i load
up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);
sorry I did not make myself clear, i mean in VB.NET

You obviously can't open browser windows server-side...

You need to use client-side JavaScript, though you can make your
server-side
code send the necessary JavaScript down to the client...

Hmm, I have done it before, there is a command that you pass a URL and an
Enum to which allows you to fire up an new Browser instance, redirect in
the
current instance etc...
There is no way to open a client window from the server, other than to make
the server send the necessary JavaScript to the client...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #7
Presumably the command sends the neccessary Javascipt :-)

Guy

"Mark Rae [MVP]" wrote:
"guy" <gu*@discussions.microsoft.comwrote in message
news:A1**********************************@microsof t.com...
I have done this loads of time, but need a reminder - how do i load
up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);

sorry I did not make myself clear, i mean in VB.NET

You obviously can't open browser windows server-side...

You need to use client-side JavaScript, though you can make your
server-side
code send the necessary JavaScript down to the client...
Hmm, I have done it before, there is a command that you pass a URL and an
Enum to which allows you to fire up an new Browser instance, redirect in
the
current instance etc...

There is no way to open a client window from the server, other than to make
the server send the necessary JavaScript to the client...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #8
"guy" <gu*@discussions.microsoft.comwrote in message
news:E9**********************************@microsof t.com...
>"guy" <gu*@discussions.microsoft.comwrote in message
news:A1**********************************@microso ft.com...
>I have done this loads of time, but need a reminder - how do i
load
up a
new
browser window from code?

(Brain is fried - i have been doing Winforms!)

JavaScript...

window.open(.........);

sorry I did not make myself clear, i mean in VB.NET

You obviously can't open browser windows server-side...

You need to use client-side JavaScript, though you can make your
server-side
code send the necessary JavaScript down to the client...

Hmm, I have done it before, there is a command that you pass a URL and
an
Enum to which allows you to fire up an new Browser instance, redirect
in
the
current instance etc...

There is no way to open a client window from the server, other than to
make
the server send the necessary JavaScript to the client...
Presumably the command sends the necessary JavaScript :-)
Correct.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: | last post by:
>> When I open a second browser window from the first, it uses the same session with first!!! > This is not true. session_id is unique for each combination of browser/url. I believe this too,...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
20
by: msa | last post by:
Hi there, First off, let me say that I know that launching to full screen is a bad idea. I would never do it given the choice, but I must follow orders from my boss, the boss that desparately...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
33
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target...
6
by: G Dean Blake | last post by:
in my aspx app I am writing a stream that works fine but it replaces what is in the client browser window. The code is as follows: .. .. HttpContext.Current.Response.ClearHeaders()...
3
by: Scott | last post by:
I wish to have a link on a page that launches a new browser before it loads the target link. The standard _new and _blank include the parent browser's cookies. Is there an alternative method that...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
0
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser...
3
by: Jimmy | last post by:
Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.