Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

Drop Down List User Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jacbyrd@gmail.com - 19 Jun 2007 18:23 GMT
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.
David Wier - 19 Jun 2007 19:16 GMT
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?

Signature

David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.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
[quoted text clipped - 4 lines]
> but is created on the screen.  I would like to use the usercontrol
> because I will be using these values in multiple places.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.