Drop Down List User Control

J

jacbyrd

I have created a user control that is a drop down list that pulls from
my database. I then drop that control into a detailsview control on
an insert item template. When I run the insert command, the drop down
list control isn't returning a value. How can I pass the value from
the drop down list control into the Insert Command Parameters? The
same situation works fine when the drop down list isn't a user control
but is created on the screen. I would like to use the usercontrol
because I will be using these values in multiple places.
 
D

David Wier

When you populate the ddl, in your usercontrol - are you doing it in the
page_Load event?
And if so - is it inside an Postback block?
And, is there a property you are using to get the DDL's selected item?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top