Dropdownlist

  • Thread starter Thread starter Jennyfer J Barco
  • Start date Start date
J

Jennyfer J Barco

Hello is there a way to create a dropdownlist inside a <input
type='dropdownlist'> or there is an equivalent to create other than
<asp:DropDownList id="drop1" runat="server"> . I need this because it's a
dynamic page and I need to create the dropdown control in any position
needed depending on what the user selected, so I'm creating this
dropdownlist at run time.

Thanks in advance
Jennyfer
 
In CodeBehind, you can add a dropdownlist dynamically to any spot on the
page. You simply need some container to anchor to. A Panel works.

If you have a limited set of choices (where dropdownlist appears), consider
placing all of them on the page and making those not applicable invisible.
This will accomplish the same thing as a dynamic draw (from a user
perspective), but gives you a bit more control.

For fully dynamic, you can create a dropdownlist in CodeBehind and anchor to
any container (including the Page object, although that is dangerous for
positioning).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Thanks, my code behind is VB. I have a simple page that has a text field
called value1 and in VB I assign to value1.text everything I need to see
like <INPUT type=.....> and <BR> and it displays it. I need to see if I can
do this with the dropdownlist

Thanks
 
Back
Top