I know this may be a noob question, but it's bugging the heck out of me.
Let's say I have a user control that I reference in my .aspx page:
<uc:somecontrol runat="server" id="uc1" property1="red" />
how do I make it so when in VS05 the intellisense will show options like "red", "green", "blue" for property1? Similar to how when you want to choose between "text", "multiline", and "password" for the modes on a textbox. I'm using VB.
Thanks!
Make your property an enum instead of a string.
Enum ControlColor
Red = 1
Blue = 2
Green = 3
End Enum
and
Public Property MyProperty As ControlColor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With