Re: Drop Down List User Control

Tech-Archive recommends: Fix windows errors by optimizing your registry



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@xxxxxxxxx> wrote in message
news:1182273798.471026.318760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.



.



Relevant Pages

  • Re: Instantiate/Load UserControl from DLL
    ... Would you mind giving out the code for FindControlQ? ... UserControl control = packageManager.GetControl; ... does not execute/interpret the actual ascx file that has the HTML ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Instantiate/Load UserControl from DLL
    ... Code Snippet Begin ...] ... UserControl control = packageManager.GetControl; ... does not execute/interpret the actual ascx file that has the HTML ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dynamically Loading a UserControl
    ... only one user control is being rendered. ... SelectedIndexChanged event do a Server.Transfer and apend a QueryString to ... Requestquery string to know which control to load. ... > keeping track of what UserControl to load upon a page being posted back. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: "The system cannot find the file specified" appears peridically in runtime
    ... As for your questions - pix:DispOfficeMajor is indeed the usercontrol. ... before - the control is perfectly compiled. ... "public" part, root folder of the website - in which that control resides, ... As for your second suggestion - Reference problem. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Refreshing a user control
    ... Calling a public method of a UserControl that takes care of changing some ... grid (or other control on the page itself) gets bound to some data sourse; ... initially that label of UserControl gets its Text property set ... DeleteCommand event gets ...
    (microsoft.public.dotnet.framework.aspnet)