LiLo Posted March 29, 2006 Posted March 29, 2006 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: Quote
karths Posted March 29, 2006 Posted March 29, 2006 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.