two pages and refresh on control

Q

Qweertz

I have a main.aspx which contains label and button.
When I click on button, javascript opens new window (window.aspx).
Window has textbox and button.
When I click on the button in window, I want it to close the window and copy
text from textbox to a label of main.aspx.

How to do this?

I tried by saving text into a session variable, but I don't know how to
refresh label.

Please help, I'm desperate.
 
M

Mark Rae

When I click on the button in window, I want it to close the window and
copy text from textbox to a label of main.aspx.

If you're doing all this client-side, you can refer to the first window with
window.opener...
 

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

Top