D
Daves
I'm iterating through all controls in ControlPlaceholder to locate specific
HyperLink controls. When found I want to add an Image control right after -
I'm visually placing seperator images between hyperlinks. When I do
_hl.Controls.Add(_img) the hyperlinks dissapear, although the image is
there?!
foreach(...)
{
if (_ctrl3 is HyperLink)
{
HyperLink _hl = (HyperLink) _ctrl3;
Image _img = new Image();
_ img.ImageUrl = "~/img/seperator.gif";
_hl.Controls.Add(_img);
}
}
HyperLink controls. When found I want to add an Image control right after -
I'm visually placing seperator images between hyperlinks. When I do
_hl.Controls.Add(_img) the hyperlinks dissapear, although the image is
there?!
foreach(...)
{
if (_ctrl3 is HyperLink)
{
HyperLink _hl = (HyperLink) _ctrl3;
Image _img = new Image();
_ img.ImageUrl = "~/img/seperator.gif";
_hl.Controls.Add(_img);
}
}