DMcGown
asked on
.NET C# - CS page
I have a Web site that has this code of the CS page
{
string title = user.getResourceTitle(file .Substring (file.Last IndexOf("\ \") + 1));
plcLinks.Controls.Add(new LiteralControl("<h2>" + title + "</h2>"));
i++;
HyperLink lnk = new HyperLink();
lnk.Text = file.Substring(file.LastIn dexOf("\\" ) + 1);
lnk.NavigateUrl = "../secure/Uploads/" + file.Substring(file.LastIn dexOf("\\" )+1);
lnk.Visible = true;
lnk.ID = "lnk" + i.ToString();
plcLinks.Controls.Add(lnk) ;
plcLinks.Controls.Add(new LiteralControl("<br />"));
}
I have the <h2> tag going to my title... I want the <p> tag to go to my links... I can't figure out how to incorporate the <p> tag to my links... I did not write this code... I am a dummy beginner.
Thank you...
{
string title = user.getResourceTitle(file
plcLinks.Controls.Add(new LiteralControl("<h2>" + title + "</h2>"));
i++;
HyperLink lnk = new HyperLink();
lnk.Text = file.Substring(file.LastIn
lnk.NavigateUrl = "../secure/Uploads/" + file.Substring(file.LastIn
lnk.Visible = true;
lnk.ID = "lnk" + i.ToString();
plcLinks.Controls.Add(lnk)
plcLinks.Controls.Add(new LiteralControl("<br />"));
}
I have the <h2> tag going to my title... I want the <p> tag to go to my links... I can't figure out how to incorporate the <p> tag to my links... I did not write this code... I am a dummy beginner.
Thank you...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER