Thursday, 15 January 2015

webforms - ASP.NET control property with [Flags] enum -


I have developed an ASP.NET control for which one of the properties [Flags] is enum. However, I am ASP. Net control does not seem capable of specifying multiple flags for this property in markup. Is there any special syntax to do this or is it not possible?

Maybe I'm thinking the question is wrong, but you do not set the enum value with a different string than com Can do

Example if I have this property under my control:

  public system. Io File option option {get; Set; }  

I can set it up in markup like this:

  & lt; Uc1: MyControl id = "control1" runat = "server" option = "delete onklos, asynchronous" />  

No comments:

Post a Comment