|
-
Jan 22nd, 2003, 01:59 AM
#1
Thread Starter
Lively Member
handling textbox click event...
hi all...
my problem may be very simple but still i cant do that! please help me.
i am having a textbox in a form i want to call some function in asp on click event of the textbox. the function contains code about database connectivity and retriveing values for the textbox value. i dont know how to do this. i cant use script tag or even if i try through asp,it's giving me error like function not defined.
anyone having idea about this please help
thanks in advance
ilikevb
-
Jan 22nd, 2003, 04:42 AM
#2
Addicted Member
Put your aSP function in a new ASP file.
In the onclick event of your textbox, put some javascript to open the ASP in a new file (window.open)
You can close the new window with the asp page by putting "window.close" in the the "onload" event
-
Jan 22nd, 2003, 05:11 AM
#3
Thread Starter
Lively Member
hi...
ok. but now i want to pass the value of textbox to the function or that new file. bcoz that value is to be used to get some values from database. how to do that?
thanks
ilikevb
-
Jan 22nd, 2003, 05:41 AM
#4
Addicted Member
use a querystring variable
e.g. mypage.asp?text1=blablabla
you can retrieve this value in your asp page:
request.Querystring("text1")
-
Jan 22nd, 2003, 06:04 AM
#5
Thread Starter
Lively Member
thanks
hi...
thanks a lot!! It solved my problem
ilikevb
-
Jan 23rd, 2003, 12:01 AM
#6
Thread Starter
Lively Member
by the way, what do i have to do if i want to open the asp page in the same window?
ilikevb
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|