I have developed an ASP.NET control for which one of the properties is a [Flags] enum. However, I don't seem to be able to specify multiple flags for this property in the ASP.NET control markup. Is there a special syntax to do this or is it just not possible?
Maybe I'm understanding the question wrong, but can't you set the enum value with a comma-separated string.
E.g. if I have this property in my control:
public System.IO.FileOptions Options { get; set; }
The I can set it in the markup like this:
<uc1:MyControl ID="control1" runat="server"
Options="DeleteOnClose,Asynchronous" />
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