[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 876
  • Last Modified:

Adding textbox or label next to panel

I have a panel like this:

<asp:panel grouptext="Customer Info" runat="server" id="pnlCustomer">

This displays the panel like a Legend with text "Customer Info".

-- Now, I want  to add a textbox, or label or a linkbutton next to text "Customer Info".

Anyway to do this?
0
Camillia
Asked:
Camillia
3 Solutions
 
aibusinesssolutionsCommented:
You want to do it during runtime?  Just do something like this.

TextBox txtBox = new TextBox;
txtBox.ID = "MyTextBox";
pnlCustomers.Controls.Add(txtBox);
0
 
CB_ThirumalaiCommented:
Is it that you want the textbox or label, as part of the grouping text (i mean inline with it), then in the code file, you can have it as,
   pnlCustomer.GroupingText = pnlCustomer.GroupingText + "&nbsp;<input id=\"txtNew\"/>&nbsp;";
0
 
urvinayanCommented:
groupText is a string property. So u cant do that directly
U have to do something complex...
0
 
CamilliaAuthor Commented:
yeah, I want to do that CB_Thirumalai is saying. But not in code behind.

As urvinayan says..i want to do that directly. Let me play around with it. I want to add a LinkButton .
0
 
CamilliaAuthor Commented:
i tried this and didnt work:

<asp:Panel ID="pnlOrderNotes" runat="server" GroupingText="Order Notes" & <asp:LinkButton runat="server" Text="Add Note"/> >

Maybe I need to do this dynamically??
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now