473,508 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem creating new window

I want to, when a user presses a button, to provide them withanother screen. How do I do this? It seems that theResponse.Redirect will change pages in the same window, I wantanother window to appear. And I am guessing that, if it ispossible, I would need to control & retrieve information fromthis new window. Is this going to be possible also?

--------------------------------
From: Wayne Hornak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dCp6c9kX7UqYCfNIFJA9zg==</Id>
Nov 18 '05 #1
2 1103
You need to write some client side block which can do the window.open() call to show that new window. Look into RegisterClientScriptBlock() and window.open() (in client javascript) for more information.
If you are going to be within IE only, you probably use ShowModalDialog() kind of things too.

--
Girish Bharadwaj
http://msmvps.com/gbvb
I want to, when a user presses a button, to provide them with=
another screen=2E How do I do this? It seems that the=
Response=2ERedirect will change pages in the same window, I want=
another window to appear=2E And I am guessing that, if it is=
possible, I would need to control & retrieve information from=
this new window=2E Is this going to be possible also?
--------------------------------
From: Wayne Hornak
-----------------------
Posted by a user from =2ENET 247 (http://www=2Edotnet247=2Ecom/)
<Id>dCp6c9kX7UqYCfNIFJA9zg=3D=3D</Id>


Nov 18 '05 #2
you can use hyperlink object and set target to new which will cause it to
load the page specified in navigateURL to be opened into a new window

you could also use javascript to do it using
window.open([url],[name][options]);

taking an example from the link you can check out for different options
window.open("aa031203a.htm", "example1", "width=400, height=300,
location=no, menubar=no, status=no, toolbar=yes, scrollbars=yes,
resizable=yes");

http://javascript.about.com/library/weekly/aa031203a.htm

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Wayne Hornak via .NET 247" <an*******@dotnet247.com> wrote in message
news:#G**************@TK2MSFTNGP09.phx.gbl...
I want to, when a user presses a button, to provide them with another
screen. How do I do this? It seems that the Response.Redirect will change
pages in the same window, I want another window to appear. And I am
guessing that, if it is possible, I would need to control & retrieve
information from this new window. Is this going to be possible also?

--------------------------------
From: Wayne Hornak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dCp6c9kX7UqYCfNIFJA9zg==</Id>
Nov 18 '05 #3

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

Similar topics

1
2371
by: Vishal Jayaswal | last post by:
Hi, I m vishal jayaswal. I m doing my BE from Agra and i m working on PHP. At present i m creating an small application for adding two numbers. Enter forst number in one text box and second number...
0
3046
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
7
2904
by: longtungd1 | last post by:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my machine. I set up a basic program per course instructions to simply create a window with default toolbar, etc., using App...
8
2539
by: rdlebreton | last post by:
Hi, Folks! I've been trying to develop my own version of these draggable layers and I have been limiting myself to IE6...for now. I have looked at some other examples to get ideas of creating...
10
3983
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
14
2898
by: Christian Kaiser | last post by:
We have a component that has no window. Well, no window in managed code - it uses a DLL which itself uses a window, and this is our problem! When the garbage collector runs and removes our...
1
1880
by: mohan | last post by:
Hello Guys, I am a beginner with Python programming and would like to implement some GUI functionalities along with my main work. So I was trying to implement one basic program (available from...
1
3778
by: rsteph | last post by:
I bought a book to help me learn to use DirectX with windows programming. It's first trying to walk me through some basic windows programming and graphics before getting into DirectX. I'm trying to...
1
2521
by: Gimzo | last post by:
Hi, I'm trying to create a button that opens a new window for setting up a whole crapload of constants for an analysis program. For this, I have a JButton. The actionPerformed-method activates...
4
1975
Claus Mygind
by: Claus Mygind | last post by:
I have a problem with some ajax communications on some users' computers. Sometimes data sent via ajax would not post to the database. I resolved the problem by deleting the user's profile and...
0
7225
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
7124
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...
1
7046
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
7498
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...
1
5053
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...
0
4707
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.