473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search Window

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
Nov 18 '05 #1
3 1140
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/de...ectmethods.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.com> wrote in message
news:OB**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2
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

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uX**************@TK2MSFTNGP11.phx.gbl...
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/de...ectmethods.asp
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jerry Camel" <rl*****@msn.com> wrote in message
news:OB**************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #3
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

"Jerry Camel" <rl*****@msn.com> wrote in message
news:OB**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve K | last post by:
After reading Harlan's post about popups some of my questions were answered but.. I was going to use differnet popups on a lot of my pages. These popups contain bios on Cornell faculty. Two days...
1
by: Robert Oschler | last post by:
I know how to load a document into the "Search" panel/sidebar in Internet Explorer. I also know that I can use the "window.opener" property, from the "Search" sidebar document, to change the main...
0
by: Steve | last post by:
C# windows I have a simple(ish) enquiry screen. on this I have a search button. I want the search window to popup as a seperate non-modal window, allow the user to search and display the...
3
by: jj | last post by:
Hi NG I have a form, where I can activate the search and replace dialogbox when pressing a button. My problem is that the dialogbox opens with the default that it should search for full match...
2
by: Scott | last post by:
I'm trying to use the HTMLHelp API calls in a VB.NET program because I want a little more functionality than is offered by the Help class in .NET. Everything works fine except for displaying the...
0
by: et | last post by:
I have a program that queries a database and displays the results in the Search window (target="_search"). That was working fine until today, for some reason, the window opens but nothing is...
2
by: zhengyan11 | last post by:
Hey, I encounter a problem when I am trying to add a pop up window on my page, which will trigger a function window.external.addSearchProvider(URL). This function will open a dialog box window....
4
by: MrWelfare | last post by:
Hi Everyone, I'm currently trying to follow an example I found in a book a while ago to try to create a spotlight (mac-like) search that filters results as one types. The script that I have works...
0
by: =?Utf-8?B?TWFyY2VlcG9v?= | last post by:
I'm a newbie using Visual Studio and Vb.Net. The vbscript below opens a Windows Explorer Search Window. The Windows Explorer Search Window has fields in which the user can insert: (i) a search...
1
by: Nour469 | last post by:
Hello, I have a problem when I run search, I have fields for: name, clientID and phoneNo. When a client calls I need to find them in the database, they might give me the name and it might not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.