Custom attribute in UserControl (*.ascx)? Custom attribute in UserControl (*.ascx)? asp.net asp.net

Custom attribute in UserControl (*.ascx)?


Add a public property to the UserControl class something like...

 public int MySize { get; set; }


You need to define public properties for both items, as such:

public int MemberHeight{ get; set; }public int PublicHeight{ get; set; }