Solved

VB.Net Web Page Dropdown Selector

Posted on 2007-04-02
3
207 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
Comment Utility
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
Comment Utility
I don't see an AJAX for VS2003.  I forgot to mention that fact.
0
 
LVL 24

Expert Comment

by:Jeff Certain
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now