471,337 Members | 928 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

populate FormView fields from a DropDownList


I'm trying to build an online form using asp.net and vb.net for the
code behind in Visual Studio 2005.

I want to fill 3 fields in a FormView that's connected to one table
(table1) with information from another table (table2) by choosing the
key field from table2 in a DropDownList.

Table2 has 3 fields with info that doesn't change (name, phone# and
email for about 5 customer service reps). I want each rep to choose
their name in the DropDownList to populate those fields in the

I'm connecting to the sql db with an ObjectDataSource.

I'm thinking I just need to put some VB code into the
SelectedIndexChanged event of the ddl, something like:

*something goes here* = DropDownList1.SelectedValue.ToString()

But I'm drawing a blank on what would go to the left of the equal

Thanks in advance for the help.
Jan 14 '08 #1
0 1411

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by P. Yanzick | last post: by
1 post views Thread by TheDude5B | last post: by
3 posts views Thread by J055 | last post: by
5 posts views Thread by =?Utf-8?B?U2F0aXNo?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.