Click here to Skip to main content
15,438,171 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI........
I want to access width and height which is apply through css class of textbox in code behind.If i am apply width and height to textbox by writting it in text box tag itself i got width and height but if i try same with by applying width and height through css class i am not able to access the width and height.provide soln for it.
Posted
Comments
Steve Echols 10-May-12 2:34am    
I seriously doubt this is possible.

1 solution

I want to access width and height which is apply through css class of textbox in code behind
You know how the page is rendered?

Once you request for a page, the page is constructed at the server side and sent back to you. Styles to controls are applied after the server code is done.
You cannot access/get the css class width/properties in your server code through controls. Though you can set the style properties of a control from your server side if needed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900