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
Solved

VB.Net Web Page Dropdown Selector

Posted on 2007-04-02
3
212 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web Form VB.Net  import CSV 4 44
Creating a route in asp.net webforms 2 32
VB.Net - String Manipulation Scenario 2 25
Access/Visual Basic Question 3 25
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 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