Dropdownlist

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
 
G

Guest

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!
***************************
 
J

Jennyfer J Barco

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
 

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,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top