I am developing a web app using asp.net. I am creating a panel control and hyperlink controls dynamically. I need to set the width of a panel control based on the length of the text in the hyperlink. How do I convert unit to integer? Is there another way to do this?