?
Solved

VB.Net Web Page Dropdown Selector

Posted on 2007-04-02
3
Medium Priority
?
216 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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