Hi Nice Guy,
> hi..guys..this is thesecond time i'm submitting this
> problem. i din get any responce on the first. i'm using
> ASP and SQL Server.
ASP is a *server-side* language. You may not call server-side
procedures on client-side events. You can, however, push all the data
(if there's not too much) to the client in an array and use javascript
or vbscript on the client to fill out the fields for you. I use
similar things on a number of sites.
> The problem is tht when i click a data in the dropdown,
> i want it to show the information(from database)
> regarding the data i click at dropdown. the info must
> be displayed in the same page.
Your second-best alternative would be to have the onchange event of
the select hit the server with something like this (wanring:
pseudocode):
onchange="window.location=document.url='?id='+this.options[this.select
edIndex].value"
Then in the page you'd just check request.querystring("id")<>"" to get
the ID of the requested record.
This WILL force another request to the server, but it would go to the
same "page," assuming that's your actual need.
Regards,
Shawn K. Hall
http://ReliableAnswers.com/
'// ========================================================
Crime wouldn't pay if the government ran it.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/