IIS ASP - Run Query from Listbox Selection

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2004 > Run Query from Listbox Selection





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Run Query from Listbox Selection
Shawn

2004-05-30, 11:53 am

I have a listbox that is dynamically populated with hardware items. When the user makes a selection, a javascript function is invoked that passes a value associated with the hardware item to a hidden textbox. I then need to take the value in the hidden
textbox and pass it to a query that will run and return dates. The returned dates then need to populate textboxes below the listbox. How can I get the query to run as selections are made in the listbox? Is it possible to accomplish what I need without
refreshing the page?

Any advice/direction you can provide is greatly appreciated. Thanks for your time and assistance.
Bob Barrows [MVP]

2004-05-30, 11:53 am

Shawn wrote:
> I have a listbox that is dynamically populated with hardware items.
> When the user makes a selection, a javascript function is invoked
> that passes a value associated with the hardware item to a hidden
> textbox. I then need to take the value in the hidden textbox and
> pass it to a query that will run and return dates. The returned
> dates then need to populate textboxes below the listbox. How can I
> get the query to run as selections are made in the listbox? Is it
> possible to accomplish what I need without refreshing the page?
>
> Any advice/direction you can provide is greatly appreciated. Thanks
> for your time and assistance.


This is all client-side code which makes it off-topic for an ASP newsgroup.
The "dhtml" and "scripting" newsgroups are the places fro client-side
scripting questions.

That said, you may want to take a look at my dynamic listbox demo which
shows one way of doing this:
http://www.thrasherwebdesign.com/in...ks&hp=links.asp

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com