Need to convert from Percent Width to Pixel Width

  • Thread starter Thread starter Pete
  • Start date Start date
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
 
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.
 
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.
 
Back
Top