Spawn new browser from server process

T

Teckie03

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.
 
C

Chris Jackson

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.
 
T

tekie03

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)
--

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.


.
 
C

Chris Jackson

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 said:
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)
--

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.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top