S
szako
I have a scenario where I need to position a submit button below a
dynamically filled checkboxlist with an unknown number of records
(check boxes). In order to pull this off (using absolute positioning),
I need to be able to determine the height of the checkboxlist at
runtime after I bind it to a dataset.
When I check the Height.Value property of the checkboxlist web control
at runtime it returns 0.0. I saw a post that says you have to set the
initial height property first before you can retrieve a value, but
doing that did not allow me to get the new height property after I
loaded the checkboxlist with the dataset.
Once I can determine the height of this control, I can add that value
as part of an algorithm to determine where to place the submit button
(below the checkboxlist).
If anyone has any ideas or solutions, please post them as this has
wasted WAY TOO MUCH of my time.
Thanks,
szako
dynamically filled checkboxlist with an unknown number of records
(check boxes). In order to pull this off (using absolute positioning),
I need to be able to determine the height of the checkboxlist at
runtime after I bind it to a dataset.
When I check the Height.Value property of the checkboxlist web control
at runtime it returns 0.0. I saw a post that says you have to set the
initial height property first before you can retrieve a value, but
doing that did not allow me to get the new height property after I
loaded the checkboxlist with the dataset.
Once I can determine the height of this control, I can add that value
as part of an algorithm to determine where to place the submit button
(below the checkboxlist).
If anyone has any ideas or solutions, please post them as this has
wasted WAY TOO MUCH of my time.
Thanks,
szako