Dyanamically adding control in Table with particuar cell

Posted by Santosh8695 under ASP.NET on 8/4/2012 | Points: 10 | Views : 773 | Status : [Member] | Replies : 1
please tell me how to add textbox or any control in table dyanmically with particual column............




Responses

Posted by: Ranjeet_8 on: 8/6/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
HTML Code
    <table>

<tr>
<td ID="TDcontrol" runat="server">

</td>
</tr>
</table>


C# Code
            TextBox txt = new TextBox();

txt.ID = "txt1";
txt.Text = "";
TDcontrol.Controls.Add(txt);


Santosh8695, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response