First of all, i would recommend you to read this:
Walkthrough: Creating a Web Custom Control[
^]
Secondly, to change
Width
of control using percentage value, you need to calculate it. For example, when you pass
50
as a input parameter (
pw
),
textbox1.Width = textbox1.Width * pw / 100