Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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, 11:41 AM
Authorized User
Join Date: Jun 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to gagansharma7
Default data selection and mapping with dropdownlist


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
itself 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.

Regards and Thanks

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping columns and then copying data Roshanjoshi2001 Excel VBA 0 December 10th, 2007 11:37 AM
Saving DropDownList selection to a database steve35719 ASP.NET 2.0 Basics 17 June 7th, 2007 04:54 PM
How to Set the Selection in Dropdownlist Control akhilhp ASP.NET 2.0 Basics 3 May 27th, 2007 07:13 AM
dropdownlist code-value pair mapping gagansharma7 General .NET 0 June 27th, 2006 02:11 PM
Mapping of Data From Various Columns paul31Hampshire Access VBA 12 June 2nd, 2006 02:23 AM

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