ANAT2403
asked on
add text to panel in code behind
In ASP.NET 2.0 with C# I have a Panel.
In the code behind I add to this panel asp:hyperlink controls:
HyperLink hl1 = new HyperLink();
hl1.ID = "HL1";
hl1.NavigateUrl = "~/Index.aspx";
hl1.Text = "Home";
pnlbreadcrumbs.Controls.Ad d(hl1);
HyperLink hl2 = new HyperLink();
hl2.ID = "HL1";
hl2.NavigateUrl = "~/Index.aspx";
hl2.Text = "HyperLink2";
pnlbreadcrumbs.Controls.Ad d(hl2);
After each hyperlink I want to give the > sign which is ">"
How shall I add it to the panel in the code behind?
thankyou
anat
In the code behind I add to this panel asp:hyperlink controls:
HyperLink hl1 = new HyperLink();
hl1.ID = "HL1";
hl1.NavigateUrl = "~/Index.aspx";
hl1.Text = "Home";
pnlbreadcrumbs.Controls.Ad
HyperLink hl2 = new HyperLink();
hl2.ID = "HL1";
hl2.NavigateUrl = "~/Index.aspx";
hl2.Text = "HyperLink2";
pnlbreadcrumbs.Controls.Ad
After each hyperlink I want to give the > sign which is ">"
How shall I add it to the panel in the code behind?
thankyou
anat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Both would work. ;)
Glad to have been helpful :)
Regards,
Max.
Glad to have been helpful :)
Regards,
Max.
ASKER
I took your idea and improved it.
Label lbl1 = new Label();
lbl1.Text = ">";
pnlbreadcrumbs.Controls.Ad
thankyou
Anat