Data type of a control's width property

LiLo

Freshman
Joined
Mar 10, 2006
Messages
33
Hello,

What is the data type returned from an asp.net control's Width property?

I tried performing arithematic operations on it but asp.net(vb) recognised it as a syntax error.

private int test

label1.width = Me.width * (test/100) 'vb highlighted this as an error

How do we perform arithematic on the width properties? :confused:
 
The width property will normally return the values in pixels, like 100 px. So, first try to print the value and see how it appears and then extract the numeric part of it
 
Back
Top