ASP.NET control property with [Flags] enum

asp.net, webforms

Solution

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" />

Problem

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?

Original source