Need to convert from Percent Width to Pixel Width

P

Pete

Hi,

Here is my situation:

I have a panel on a web form set to 90% width. On the page load or render,
I would like to get the Panel width in Pixels. The Panel.Width property
keeps returning it in percent. I am assuming that after the control has
been rendered I should be able to get the final pixel width even though I
specified the initial width in percents.

Anyone know how to do this?


TIA
 
C

Chris Taylor

Hi,

The problem here is that the physical pixel width will only be determined at
the client side. The server is not aware of the physical rendering on the
client.
 
P

pete

I guess I need javascript


Chris Taylor said:
Hi,

The problem here is that the physical pixel width will only be determined at
the client side. The server is not aware of the physical rendering on the
client.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top