I would like my web app to open a new browser window,
similar to a standard target="_blank" form tag.
The new page must preserve Session information, and have
control passed to the Form_Load event.
I have tried Server.Transfer, Response.Redirect and
setting the form target to "_blank", but none of these
have worked.
Please any help?
Thanks
David Albany, Developer
Milatko CommunicationsDavid:
AFAIK, you cannot maintain session state between separate browser windows.
You will need to use another method of state persistence, IE querystrings,
cookies, etc.
"David Albany" <david.albany@.milatko.co.uk> wrote in message
news:0b5501c360bd$1b03b8a0$a501280a@.phx.gbl...
> I would like my web app to open a new browser window,
> similar to a standard target="_blank" form tag.
> The new page must preserve Session information, and have
> control passed to the Form_Load event.
> I have tried Server.Transfer, Response.Redirect and
> setting the form target to "_blank", but none of these
> have worked.
> Please any help?
> Thanks
> David Albany, Developer
> Milatko Communications
Do it on the client side using javascript - window.open.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
"David Albany" <david.albany@.milatko.co.uk> wrote in message
news:0b5501c360bd$1b03b8a0$a501280a@.phx.gbl...
> I would like my web app to open a new browser window,
> similar to a standard target="_blank" form tag.
> The new page must preserve Session information, and have
> control passed to the Form_Load event.
> I have tried Server.Transfer, Response.Redirect and
> setting the form target to "_blank", but none of these
> have worked.
> Please any help?
> Thanks
> David Albany, Developer
> Milatko Communications
to open new window you have 2 choices
1. add target="_blank" to form tag
2. use javascript
on server side cmdLink.Attributes.Add("onclick",
"javascript:window.open(..........);")
both choices will preserve session
Alex
alex-krupoff@.mailbits.com
"David Albany" <david.albany@.milatko.co.uk> wrote in message
news:0b5501c360bd$1b03b8a0$a501280a@.phx.gbl...
> I would like my web app to open a new browser window,
> similar to a standard target="_blank" form tag.
> The new page must preserve Session information, and have
> control passed to the Form_Load event.
> I have tried Server.Transfer, Response.Redirect and
> setting the form target to "_blank", but none of these
> have worked.
> Please any help?
> Thanks
> David Albany, Developer
> Milatko Communications
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment