By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

Creating a search Facility

P: n/a
GMK
HI ALL
I'M COMING FROM A FOX PRO BACKGROUND
WHERE I COULD IN A VERY EASY WAY CREATE A SEACH FACILITY BY PRESSING N F1
AND ANOTHER WINDOW WILL DIRECTLY APPEAR WHICH WOULD LET THE USER TO SEARCH
FRO A SPECIFIC DATAVALUE AND INSERT IT IN A TEXTBOX IN THE ORIGINAL FORM.
I WOULD LIKE TO CREATE A SIMILAR FACILITY IN ASP.NET
I DON'T WANT A KEYPRESS FUNCTION I COULD CREATE A BUTTON ON THE SCREEN BUT I
WANT TO CREATE A POPUP WINDOW WHERE I COULD FROM THAT POPUP RETURN A VALUE
TO MY ORIGINAL PAGE.
CAN ANYBODY HELP ME TO KNOW HOW CAN I DO THIS OR AT LEAST GIVE ME A LINK TO
A TUTORIAL THAT WOULD HELP ME IN IMPLEMENTING THIS FACILITY

THANK YOU
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
your working in web browser now so you have to use javascript - you can trap
F1 using javascript in IE and do whatever you like with the event, like open
a new window.

Catch the OnHelp event in BODY tag and call any javascript function ...
example
<script>
function openSearchPage()
{
// write the code for opening ur search page
}
</script>
<BODY onhelp="openSearchPage();return false;">

You then from a popup need to work out how pass a value back to your inital
form following instructions like these:
http://www.webdevelopersjournal.com/...ss_values.html

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"GMK" <x@x.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
HI ALL
I'M COMING FROM A FOX PRO BACKGROUND
WHERE I COULD IN A VERY EASY WAY CREATE A SEACH FACILITY BY PRESSING N F1
AND ANOTHER WINDOW WILL DIRECTLY APPEAR WHICH WOULD LET THE USER TO SEARCH
FRO A SPECIFIC DATAVALUE AND INSERT IT IN A TEXTBOX IN THE ORIGINAL FORM.
I WOULD LIKE TO CREATE A SIMILAR FACILITY IN ASP.NET
I DON'T WANT A KEYPRESS FUNCTION I COULD CREATE A BUTTON ON THE SCREEN BUT I WANT TO CREATE A POPUP WINDOW WHERE I COULD FROM THAT POPUP RETURN A VALUE
TO MY ORIGINAL PAGE.
CAN ANYBODY HELP ME TO KNOW HOW CAN I DO THIS OR AT LEAST GIVE ME A LINK TO A TUTORIAL THAT WOULD HELP ME IN IMPLEMENTING THIS FACILITY

THANK YOU

Nov 19 '05 #2

P: n/a
IN JAVASCRIPT YOU CAN CAPTURE THE KEYPRESS AND CHECK FOR AN F1 KEY. YOU CAN
THEN CALL WINDOW.OPEN() FOR YOUR POPUP HELP WINDOW. YOU CAN FIND THE BASIC
IDEA OF CAPTURING KEY INPUT HERE:
HTTP://WWW.CODINGFORUMS.COM/ARCHIVE/INDEX.PHP/T-50450

SPECIFIC CHARACTER MAPS CAN BE FOUND ON THIS FILE:
HTTP://WWW.GAR.NO/GLINKWEB/DOC/GLINKKBD.HTML

NOTE: NOTICE HOW HARD IT IS TO READ WHEN YOU TYPE ALL IN CAPS.
---

GREGORY A. BEAMER
MVP; MCP: +I, SE, SD, DBA

***************************
THINK OUTSIDE THE BOX!
***************************
"GMK" wrote:
HI ALL
I'M COMING FROM A FOX PRO BACKGROUND
WHERE I COULD IN A VERY EASY WAY CREATE A SEACH FACILITY BY PRESSING N F1
AND ANOTHER WINDOW WILL DIRECTLY APPEAR WHICH WOULD LET THE USER TO SEARCH
FRO A SPECIFIC DATAVALUE AND INSERT IT IN A TEXTBOX IN THE ORIGINAL FORM.
I WOULD LIKE TO CREATE A SIMILAR FACILITY IN ASP.NET
I DON'T WANT A KEYPRESS FUNCTION I COULD CREATE A BUTTON ON THE SCREEN BUT I
WANT TO CREATE A POPUP WINDOW WHERE I COULD FROM THAT POPUP RETURN A VALUE
TO MY ORIGINAL PAGE.
CAN ANYBODY HELP ME TO KNOW HOW CAN I DO THIS OR AT LEAST GIVE ME A LINK TO
A TUTORIAL THAT WOULD HELP ME IN IMPLEMENTING THIS FACILITY

THANK YOU

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.