Community discussion forum

Print plain HTML in a dynamically created asp.net c# panel

  • 10 months ago
    I have this code:      Event Title     (Hide Details...) My Problem is how can print the line with   in the Dynamically created panel. I want it to be inserted in the panel itself and not to resort to Embedding it to my asp:Label Here's the code: Panel TitlePanel = new Panel(); ImageButton img_ControlID = new ImageButton(); img_ControlID.ImageUrl = "~/images/collapse_blue.jpg"; Label lbl_TextLabelID = new Label(); lbl_TextLabelID.Text = "(Hide Details...)"; TitlePanel.CssClass = "collapsePanelHeader"; TitlePanel.Controls.Add(img_ControlID); //I want it to be written. How can it be? TitlePanel.Controls.Add(lbl_TextLabelID);
    Post was edited on 29/12/2008 14:16:36 Report abuse
  • 10 months ago
    Oh no its messed up. I will just repost my question I have this code:      Event Title     (Hide Details...) My Problem is how can print the line with   in the Dynamically created panel. I want it to be inserted in the panel itself and not to resort to Embedding it to my asp:Label Here's the code: Panel TitlePanel = new Panel(); ImageButton img_ControlID = new ImageButton(); img_ControlID.ImageUrl = "~/images/collapse_blue.jpg"; Label lbl_TextLabelID = new Label(); lbl_TextLabelID.Text = "(Hide Details...)"; TitlePanel.CssClass = "collapsePanelHeader"; TitlePanel.Controls.Add(img_ControlID); //I want it to be written. How can it be? TitlePanel.Controls.Add(lbl_TextLabelID);
  • 10 months ago
    this is the "Hide Details"

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback