New window, referenced many times? (Easy)

J

Jason

I'm using asp.net to create a staff directory based on Active Directory, and
I'm sure this is an easy question, but I can't seem to find anything about
it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked, and
then populate it with data from the first window. What I'd like however is
to repopulate this second window when a 'different' button is clicked on the
first without having to destroy then recreate the second (created window).

That is, I click on one username in the original window and it places all
that persons data into a newly created second window. I click on a second
username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second
window please from my code?

Thanks,

Jason
 
S

Steve Flitcroft

Use the same javascript function to open the page, this will reload the new
contents into the same window as the name of the window is the same=mywindow
function openpage(url)
{
window.open(url,'MyWindow',options)
}
 
S

Shiva

Hi,

I assume you do not want to open multiple windows for different button
clicks, rather use the same window. If so, use the same window name (2nd
parameters in window.open()) whenever you do a window.open().

HTH

I'm using asp.net to create a staff directory based on Active Directory, and
I'm sure this is an easy question, but I can't seem to find anything about
it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked, and
then populate it with data from the first window. What I'd like however is
to repopulate this second window when a 'different' button is clicked on the
first without having to destroy then recreate the second (created window).

That is, I click on one username in the original window and it places all
that persons data into a newly created second window. I click on a second
username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second
window please from my code?

Thanks,

Jason
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top