Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 27th, 2006, 02:11 PM
Authorized User
Join Date: Jun 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to gagansharma7
Default dropdownlist code-value pair mapping


I have two databases db1 and db2.
Database db1 has table tbl1 containing fields empcode1 and salary.
Database db2 has table tbl2 containing fields empcode2 and empname.
I am showing empname from the tbl2 of database db2 in the dropdownlist-ddl1.
On clicking submit button I want to display salary of all those employees whose empcode1 matches with empcode2 in the 2 tables of db1 and db2.

So the empname in tbl2 should get mapped into empcode2 internally in the code & then match with corresponding empcode1 in table tbl1

How to handle the dropdownlist ddl1 for empname,empcode1 & empcode2?
empcode, empcode1, empcode2 are of type varchar.

I need some guiding code.


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# code for dropdownlist abhishekkashyap27 C# 2005 7 January 23rd, 2008 05:14 AM
combobox - Key & Value pair problem dash dev C# 2005 2 December 3rd, 2007 04:53 PM
data selection and mapping with dropdownlist gagansharma7 ASP.NET 1.0 and 1.1 Basics 0 June 27th, 2006 11:41 AM
A pair of Radio Buttons in a datagrid cell acorbo ASP.NET 1.0 and 1.1 Professional 1 October 29th, 2004 02:33 PM
Compile Error on Let/Get pair John K. King Pro VB 6 2 June 14th, 2004 01:00 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.