473,505 Members | 13,925 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server side Window.open?

Ok, this has to be either easy, or impossible...

I'd like to fire of a pop up window using serverside code...

Basically its a preview popup of a form.
The aspx pop up page goes through the session etc to display the information
entered so far.
Just a javascipt href will not work as when the preview button or link is
pressed the form needs to post back to the server to make the session
information up to date.
Once the processing has been done, I can fire the pop up.

Is there a way of doing this using the Request, Response or Page objects?
Currently the only way I can think of doing it is to output javascipt to the
page as it loads and that calls the window.open.
I personally think that is quite messy and don't like javascipt that
executes on the page loading. I would rather have a neater way of doing it
if anyone knows of one?

Any help much appreciated.
Thanks,
Robin
Nov 17 '05 #1
1 3753
Create your script to open the window, and use Page.RegisterStartupScript()
to add the script to the page, to be run when the page loads in the browser.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Robin Day" <ro*******@advorto.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Ok, this has to be either easy, or impossible...

I'd like to fire of a pop up window using serverside code...

Basically its a preview popup of a form.
The aspx pop up page goes through the session etc to display the information entered so far.
Just a javascipt href will not work as when the preview button or link is
pressed the form needs to post back to the server to make the session
information up to date.
Once the processing has been done, I can fire the pop up.

Is there a way of doing this using the Request, Response or Page objects?
Currently the only way I can think of doing it is to output javascipt to the page as it loads and that calls the window.open.
I personally think that is quite messy and don't like javascipt that
executes on the page loading. I would rather have a neater way of doing it
if anyone knows of one?

Any help much appreciated.
Thanks,
Robin

Nov 17 '05 #2

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

Similar topics

1
4064
by: Renuka | last post by:
Hello, Can someone help me with the following situation?? I have a Hyperlink within a String like below: sSql = "SELECT DISTINCT " + "'Action' = '<center><a...
12
12396
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
2
1402
by: Solvig | last post by:
Server side and client side actions on one button in ASP.NET I am stuck. How do I find a start to a solution. After checking all fields in a form I want to save changes in the database, open a...
3
6763
by: David Shorthouse | last post by:
Hey folks, Not an off-topic posting.....since I was shot-down in an earlier post...this one's legit. How do I go about calling a server-side vbscript within a client-side javascript function?...
3
1926
by: Karim | last post by:
I have a button that opens a new Window using client side Javascript. The button also has server side script (.._click) that saves some session variables to be used in the new Window. The...
7
8417
by: ap | last post by:
Hi, It is a quick question... Is that impossible to print the page(Web Form .aspx file) in client side using GDI+ like PrintDocument pd = new PrintDocument(); pd.print(); As I know it is a...
6
21392
by: shil | last post by:
I have a server side button that needs to do some preperation and afterwards, if everything goes well, open a new browser with a specific url. I know how to execute javascript from a server side...
2
2007
by: domtam | last post by:
Hi all, Here is what I want: when a user clicks a <asp:button>, its event handler will do some server-side processing and then pop up a windows of another page. As far as I know, if no pop-up...
13
3515
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
0
7213
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
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
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
5610
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,...
1
5026
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
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
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.