![]() |
Drop Down List User Control
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. |
Re: Drop Down List User Control
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? -- David Wier MVP/ASPInsider http://aspnet101.com http://iWritePro.com <jacbyrd@gmail.com> wrote in message news:1182273798.471026.318760@g4g2000hsf.googlegro ups.com... >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. > |
| All times are GMT. The time now is 03:19 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.