Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...