Spawn new browser from server process

  • Thread starter Thread starter Teckie03
  • Start date Start date
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.
 
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.
 
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.


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


.
 
Back
Top