Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 27th, 2006, 11:41 AM
Authorized User
Join Date: Jun 2006
Location: , , India.
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:37 PM.

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