Link to home
Start Free TrialLog in
Avatar of ANAT2403
ANAT2403Flag for Israel

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.Add(hl1);

                HyperLink hl2 = new HyperLink();
                hl2.ID = "HL1";
                hl2.NavigateUrl = "~/Index.aspx";
                hl2.Text = "HyperLink2";
                pnlbreadcrumbs.Controls.Add(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

ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ANAT2403

ASKER

Hi Max,
I took your idea and improved it.
                Label lbl1 = new Label();
                lbl1.Text = ">";
                pnlbreadcrumbs.Controls.Add(lbl1);
thankyou
Anat
Avatar of DreamMaster
DreamMaster

Both would work. ;)

Glad to have been helpful :)

Regards,
Max.