473,378 Members | 1,468 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,378 software developers and data experts.

Spawn new browser from server process

Hi, does anyone know how to display a seperate browser
from server process?

My ASP.NET app control (ascx) has Archive button that does
its own work [on server], including updating an html page
called Index.html. After finishing its work, it should
spawn a new browser and display the updated Index.html
file. How can I do that?

Thank you for any response.
Nov 18 '05 #1
3 1840
You can't directly manipulate the user's machine at all - what you would
need to do is perform your browser manipulation on the client. For example:

You want a new window - just have a hyperlink with target="_blank", or else
use Window.Open(...) in Javascript.

You want to perform actions, and then redirect, and it's somewhat short
lived: Display "Please Wait" text, and then Response.Redirect or
Server.Transfer when you are done.

You want to perform actions, and then redirect, but it's a very long lived
process: Display "Please Wait" and have the page poll ever xxx seconds using
JavaScript.

Just some ideas, depending on what your needs are.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Teckie03" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hi, does anyone know how to display a seperate browser
from server process?

My ASP.NET app control (ascx) has Archive button that does
its own work [on server], including updating an html page
called Index.html. After finishing its work, it should
spawn a new browser and display the updated Index.html
file. How can I do that?

Thank you for any response.

Nov 18 '05 #2
Use window.open(...) is a great, but how do you trap event
handler at the end of a server process (or right after
finishing a click button event sub/function) to call the
script?

I've seen web sites that behave similarly in the sense
they seem to process something and send back another
window.

Any ideas?

Thanks.

-----Original Message-----
You can't directly manipulate the user's machine at all - what you wouldneed to do is perform your browser manipulation on the client. For example:
You want a new window - just have a hyperlink with target="_blank", or elseuse Window.Open(...) in Javascript.

You want to perform actions, and then redirect, and it's somewhat shortlived: Display "Please Wait" text, and then Response.Redirect orServer.Transfer when you are done.

You want to perform actions, and then redirect, but it's a very long livedprocess: Display "Please Wait" and have the page poll ever xxx seconds usingJavaScript.

Just some ideas, depending on what your needs are.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Teckie03" <an*******@discussions.microsoft.com> wrote in messagenews:07****************************@phx.gbl...
Hi, does anyone know how to display a seperate browser
from server process?

My ASP.NET app control (ascx) has Archive button that does its own work [on server], including updating an html page called Index.html. After finishing its work, it should
spawn a new browser and display the updated Index.html
file. How can I do that?

Thank you for any response.

.

Nov 18 '05 #3
Well, you have to simulate that, since you can't actually execute that
behavior. So, just think outside the box. Some options:

1. Have your server-side event handler process the code, and then
Response.Write the script to pop open the new page.
2. Have the button handled entirely locally, spawning a new window. Have
this new window launch the process that you want, and provide the
appropriate feedback.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"tekie03" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Use window.open(...) is a great, but how do you trap event
handler at the end of a server process (or right after
finishing a click button event sub/function) to call the
script?

I've seen web sites that behave similarly in the sense
they seem to process something and send back another
window.

Any ideas?

Thanks.

-----Original Message-----
You can't directly manipulate the user's machine at all -

what you would
need to do is perform your browser manipulation on the

client. For example:

You want a new window - just have a hyperlink with

target="_blank", or else
use Window.Open(...) in Javascript.

You want to perform actions, and then redirect, and it's

somewhat short
lived: Display "Please Wait" text, and then

Response.Redirect or
Server.Transfer when you are done.

You want to perform actions, and then redirect, but it's

a very long lived
process: Display "Please Wait" and have the page poll

ever xxx seconds using
JavaScript.

Just some ideas, depending on what your needs are.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Teckie03" <an*******@discussions.microsoft.com> wrote in

message
news:07****************************@phx.gbl...
Hi, does anyone know how to display a seperate browser
from server process?

My ASP.NET app control (ascx) has Archive button that does its own work [on server], including updating an html page called Index.html. After finishing its work, it should
spawn a new browser and display the updated Index.html
file. How can I do that?

Thank you for any response.

.

Nov 18 '05 #4

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

Similar topics

7
by: C Gillespie | last post by:
Dear All, I have a function def printHello(): fp = open('file','w') fp.write('hello') fp.close() I would like to call that function using spawn or fork. My questions are:
1
by: googlemike | last post by:
I'm trying to use Python and PyGTK + Glade, along with Bash. I want to make a GUI for the Linux vpnclient command-line tool. (Look for linux-vpnclient.tar.gz on the Internet if you are curious.)...
3
by: Paul | last post by:
Hi all. Can someone provide some help on the following as there seems to be many different methods of acheiving the same outcome. Basically I am trying to develop a web service which will...
4
by: david | last post by:
It seems that it can not do it due to security. My boss believes that .NET ASP web form application can spawn a local application at the client computer via web browser. Can we do it? How to...
4
by: richie | last post by:
Hi Everyone I have a problem with windows service I wrote which spawns a win32 program. the code in question looks like this: myProcess = new Process(); myProcess.StartInfo.FileName =...
6
by: =?Utf-8?B?U3RldmVU?= | last post by:
I am trying to figure out how to create a Process that spawns IE with a specific proxy (web-proxy:8080). Does anyone know how to do this? -- ----------- Thanks, Steve
2
by: patelxxx | last post by:
I'm trying to run CGI file and the URL i'm using is: http://localhost/cgi-bin/names.cgi and the names.cgi is located at: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/names.cgi ...
3
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
4
by: Brendan Miller | last post by:
I want to spawn a child process based on an external executable that I have the path for. I then want to wait on that executable, and capture it's output. In the os module, fork is only...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.