I want to create dynamic elements inside my div on c# asp.net. I need asp:TextBox instead of HTML textbox. This code works:
create.InnerHtml = "<input type='text' name='name' value='first Text'/>";
while this does not:
create.InnerHtml = "<asp:TextBox runat=\"server\"></asp:TextBox>";
Problem is I need runat="server". How to create asp:TextBox dynamically inside div? or HTML Textbox has attr of runat="server"? Thank you.