How to preserve session in embeded browser?

N

navyliu

When I plug my IE into my own managed forms in C#,I always lost cookies in
the new IE page(if the new IE page is generated by the javascript
"Window.open()").How to solve this problem?Can I use axWebBrowser to solve
it?
 
G

Guest

Hi,
Though i am not sure you can try following things(i found this on searching
on internet):
[1] try window.showModalDialog() instead of window.open
[2]if the data you need to send to another page is not sensitive, send it in
the query string.

example

window.open("WebForm2.aspx?username=test");

and then retrieve it from the newly opened page using code behind

string userName = Request.QueryString["username"];

if it is sensitive try to encode it and decode it.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top