Link to home
Start Free TrialLog in
Avatar of sonus
sonus

asked on

Determining Web Form Table Height

I have a web form Table control that I'm building dynamically with a variable number of rows.  How do I determine the height of this table in code?

I've tried variations of the following with no luck:

intHeight = tbl.Height.value

Thanks


ASKER CERTIFIED SOLUTION
Avatar of naveenkohli
naveenkohli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tim_ferris
tim_ferris

Hi sonus

Just make sure you have runat=server in your table tag and then in your code simply call it:

Dim iHeight as int32

iHeight = tblTest.Height


Rgds

Tim
Avatar of Bob Learned
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by naveenkohli

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer