Is there a way to get the width property of controls in code behind? I need to add dynamic controls to panels and make the width 20px less then the panel. So I am trying to do this in Page_Load event but the width property is not an integer or string.
Share
That will give you a the width as a double.
Then you could do this: