Solved

VB.Net Web Page Dropdown Selector

Posted on 2007-04-02
3
214 Views
Last Modified: 2010-04-23
I have a need to set up a dropdown with relational linking between two databases.  I have one table with an ID on it and another with ID and location.  I need to be able to view the current location linked by ID and then click the dropdown to select a new location from the complete list of locations in the supporting table.  I am using a SQL connector.  What type of dropdown do I use?  What properties do I set to allow normal display from one table and drop-down display from another?
0
Comment
Question by:slink9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 500 total points
ID: 18838943
You get to write this code by hand. You really want to use AJAX for this; otherwise you have to postback the page or write a bunch of javascript. Having done both of these (pre-AJAX), I can assure you that you don't want to do this.

Check out the Telerik AJAX controls -- particularly the AJAX manager.
0
 
LVL 23

Author Comment

by:slink9
ID: 18842436
I don't see an AJAX for VS2003.  I forgot to mention that fact.
0
 
LVL 24

Expert Comment

by:Jeff Certain
ID: 18842569
All of the Telerik controls (www.telerik.com) can be used in either VS2003 or VS2005. The developer license for the Ajax manager only is $399. There's also a trial version available to see if it does what you want (either 30 or 90 days - I don't remember).

If you're doing this in a professional environment, the point you need to take to your boss is that this particular tool allows you "ajaxify" existing controls, specifying which ones should be the target of callbacks from other controls. In your case, you'd want combo box 2 to be the target of operations for combo box 1. In the SelectedIndexChanged event for combo box 1, you'd have to get the data that is displayed in box 2 based on the current data in box 1. You can either get all the data and cache it, then perform filters in a dataview (performs better, but then you need to worry about the cache going stale... plus it's more work) or just hit the database directly to get the data when you need it.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question