Andy Smith's Blog

Page.RegisterStartupScript('Andy', 'MetaBuilders_WebControls_GainKnowledge();');

Flagged Enum Properties

Flagged Enums present a problem in asp.net as custom control properties because the asp.net page parser/compiler doesn't know how to generate pages where those properties have been set in the declarative tag. It causes a null reference exception to be thrown. I did a little thinking about it, and came up with a fairly workable solution to it using a public string property to wrap the flagged enum. So I wrote up a little article describing the technique. As usual, if you can come up with a better solution, please, let me know.

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)