Search Window

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

I've got a web form that requires a list of user names. I'd like to have a
search form that allows a person to lookup a network user name by specifying
a first or last name. I can dot he code for the AD lookup, but how can I
pop-up a search window from the web form and have the results sent back to
the original page? Thanks.

Jerry
 
The only way to create a popup window is to use client-side JavaScript. The
function is window.open() and you can add the script to the page using
Page.RegisterStartupScript() during a PostBack, so that the window opens
when the page comes back to the browser. You can find details on the
window.open() method at:

http://msdn.microsoft.com/library/d...y/en-us/dnproasp/html/windowobjectmethods.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
What about using DHTML dialogs? That seems to work just fine for poppoing
up the window. Now I just have to figure out how to get the returned value
into my code behind module... Any thoughts?

Jerry
 
I've actually got the dialog working using some client side vbscript with a
call to window.ShowModalDialog.
The question is how do I get the result of this dialog into, say, a textbox
server control that's on the form.

I tried setting the Text property of the textbox to the result of the
dialog, but it just errors out claiming that an object is required.

Thoughts and ideas...?

Jerry
 
Back
Top