Maddy.Shik Maddy.Shik - 10 months ago 28
ASP.NET (C#) Question

asp:to add web control in table cell of table control (web control ).

I have inserted a table web control in a panel. In that table's cells I want to insert other user control like label, panel. I am not able to do that. Is there any difference in normal table for layout and table web control. If it is, then how can I insert simple table in a panel.

Answer Source

You need to provide us with a little more information.

I don't see any problems in what you are doing, can you show an example? Is it from code behind or in the aspx code?

<asp:Panel runat="server" id="pnl_something">
             <asp:Label runat="server" id="lbl_inside" />

I haven't tested that code, just wrote here. If you are adding it from code behind, you should build the table first and in the Controls of the td add the label.

Hope it helped