473,834 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1548
"guy" <gu*@discussion s.microsoft.com wrote in message
news:A5******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:A5******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:0E******** *************** ***********@mic rosoft.com...
>"guy" <gu*@discussion s.microsoft.com wrote in message
news:A5******* *************** ************@mi crosoft.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.ClientScri pt.RegisterStar tupScript(me.Ge tType(),"open", "window.open('h ttp://www.microsoft.c om','','height= 400,width=300') ;",true)

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"guy" <gu*@discussion s.microsoft.com wrote in message
news:A5******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:0E******** *************** ***********@mic rosoft.com...
"guy" <gu*@discussion s.microsoft.com wrote in message
news:A5******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:A1******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:A1******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com wrote in message
news:E9******** *************** ***********@mic rosoft.com...
>"guy" <gu*@discussion s.microsoft.com wrote in message
news:A1******* *************** ************@mi crosoft.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
3936
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, but you can see: 1. try http://tassadar.physics.auth.gr/~chameleon/Books/ 2. right-click in one menu link and "open in new window". 3. in 2nd browser window click greek flag 4. in 1st browser window click "Programming" everything in 1st browser...
13
9470
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 intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in the session. Now if two windows access (and modify!) the same session, then madness will result....
20
3312
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 wants a desktop application made out of Internet technologies. We're writing an application that has JavaScript enabled as a client machine requirement. We need to support Windows with IE 5+ and Netscape 7+ plus Mac with IE 5+ and Netscape 6.2+.
12
10184
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 scrollbar, you get the height of the entire document, screwing up any chance of centering a window in the browser using these values. Is there a way to get the height of the actual browser window and not the entire page height? Thanks.
33
4085
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 reserve word "_blank" opens a blank new browser window for every link, which can sometimes result in a lot of open browser windows. Is there no way to "reuse" a previously linked browser window and have it load the new web page in Foreground
6
3067
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() HttpContext.Current.Response.ClearContent() HttpContext.Current.Response.ContentType = "application/pdf" Dim myBuffer(MyStream.Length) As Byte MyStream.Read(myBuffer, 0, CType(MyStream.Length, Integer)) HttpContext.Current.Response.BinaryWrite(myBuffer)
3
2030
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 excludes these cookies? Thanks in advance
6
3950
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 signal to server. This seems to be achievable with body unload events, but it is little too much, as even if user navigate within my site, this event will be generated, this can be avoided by handling onclick of each link, so that I'll know exactly...
0
2521
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 functionality where the ‘mini-browser’ has similar functionality to a normal browser. Let me explain: Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
3
6469
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 doSomethingInDiffWindow() { // do something // open up a pop-up modal window // continue back on doing something after pop-up modal window
0
9643
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10786
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10544
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7754
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.