Hi,
I have a button user control, on which I've created a property, UserRights, which I use to define the rights a user must have before the button is enabled. These rights are defined as public constants in a class called UserRight (I don't use Enum for some special code design reasons). So, what I would like to achive is this:
<hmk:Button Id="BtnSave" UserRights='<%#UserRight.Create, UserRight.Modify%>' ... runat="server" />
Right now, the UserRights property is implemented as:
public List<int> UserRights {get; set; }
And therefore, I need to do like this:
<hmk:Button Id="BtnSave" UserRights='<%#new List<int> {UserRight.Create, UserRight.Modify }%>' ... runat="server" />
Is it possible to achieve what I want as stated in the first example?
Best regards Henrik