KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This is the code below in code behind file's Page_Load event: LinkButton linkButton = new LinkButton(); linkButton.ID = "LinkButtonDynamicInPlaceHolder1Id" + i; linkButton.ForeColor = Color.Blue; linkButton.Font.Bold = true; linkButton.Font.Size = 14; linkButton.Font.Underline = false; linkButton.Text = itemList[i].ItemTitle.InnerText; linkButton.Click += new EventHandler(LinkButton_Click); linkButton.Attributes.Add("LinkUrl",itemList[i].ItemLink.InnerText); PlaceHolder1.Controls.Add(linkButton); Label label = new Label(); label.ID = "LabelDynamicInPlaceHolder1Id" + i; label.ForeColor = Color.DarkGray; label.Text = itemList[i].ItemDescription.InnerText; PlaceHolder1.Controls.Add(label); I want a line break between each control generated.
Tags (comma-separated)
Save Edits
Cancel