Just set the Panel's width to the HyperLink's width
Panel1.Width = HyperLink1.Width
>hello,
>
> 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?
>
>thanks
>Jim
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi