Answer: With the help of control BorderWidth property,we can set control border width.We have to use
Pixel static method of
Unit class and we have to pass a numeric value in it.
For Example:-
Suppose,i have a button control like below whose border i have to set
<asp:Button ID="Button4" runat="server" Text="Button"/>
In the code behind,
We will write:
Button4.BorderWidth = Unit.Pixel(1);
Asked In: Many Interviews |
Alert Moderator