J
Jeff
Hey
asp.net 2.0
I'm trying to calculate the width of the HyperLink control (see my code
below). But all I get is the value 0.0
PlaceHolder placeholder =
(PlaceHolder)myProfile.FindControl("PlaceHolder1");
double Rwidth = 0;
hyperlink = new HyperLink();
hyperlink.Text = "helloworld1";
hyperlink.Font.Size = 16;
hyperlink.NavigateUrl = "www.vg.no";
hyperlink.Target = "_blank";
placeholder.Controls.Add(hyperlink);
Rwidth = hyperlink.Width.Value;
after this line "Rwidth = hyperlink.Width.Value;" the Rwidth had the value
0.0. But this isn't the real width of the HyperLink control.
The HyperLink control is added dynamically in the Page_Load event of the
webpage
What should I do to get the real width of the HyperLink column?
Jeff
asp.net 2.0
I'm trying to calculate the width of the HyperLink control (see my code
below). But all I get is the value 0.0
PlaceHolder placeholder =
(PlaceHolder)myProfile.FindControl("PlaceHolder1");
double Rwidth = 0;
hyperlink = new HyperLink();
hyperlink.Text = "helloworld1";
hyperlink.Font.Size = 16;
hyperlink.NavigateUrl = "www.vg.no";
hyperlink.Target = "_blank";
placeholder.Controls.Add(hyperlink);
Rwidth = hyperlink.Width.Value;
after this line "Rwidth = hyperlink.Width.Value;" the Rwidth had the value
0.0. But this isn't the real width of the HyperLink control.
The HyperLink control is added dynamically in the Page_Load event of the
webpage
What should I do to get the real width of the HyperLink column?
Jeff