Rob,
In addition to what Charles said, you could use a standard HTML
select (runat=server) instead. Then at run-time, you could decide
whether you want to set its Multiple property to True or False.
Cheers,
Peter
-----Original Message-----
From: [email protected] On Behalf Of robrap_1976
How does one change the control type of a list control programmatically?
I have an ascx with a dropdown I'd like to be able to choose whether it
renders as a DropDownList or Listbox at runtime.
Many Thanks
Rob
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/