{"id":4013,"date":"2014-03-30T07:12:14","date_gmt":"2014-03-30T07:12:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/generate-multiple-textbox-dynamically-on-button-click-in-asp-net-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:12:14","modified_gmt":"2014-03-30T07:12:14","slug":"generate-multiple-textbox-dynamically-on-button-click-in-asp-net-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/generate-multiple-textbox-dynamically-on-button-click-in-asp-net-collection-of-common-programming-errors\/","title":{"rendered":"Generate multiple Textbox dynamically on button click in asp.net-Collection of common programming errors"},"content":{"rendered":"<p>Its simple&#8230;Just create the Texbox object and add the control to your div as like below example&#8230;.Make sure that your adding control id is unique&#8230;..<\/p>\n<pre><code>HtmlGenericControl dynDivtxtBx = new HtmlGenericControl(\"div\");\ndynDivtxtBx.Attributes.Add(\"class\", \"divClass\");\n\nTextBox txtDegree = new TextBox();\ntxtDegree.ID = \"txtDegree1\";\ntxtDegree.MaxLength = 50;\ndynDivtxtBx.Controls.Add(txtDegree);\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Its simple&#8230;Just create the Texbox object and add the control to your div as like below example&#8230;.Make sure that your adding control id is unique&#8230;.. HtmlGenericControl dynDivtxtBx = new HtmlGenericControl(&#8220;div&#8221;); dynDivtxtBx.Attributes.Add(&#8220;class&#8221;, &#8220;divClass&#8221;); TextBox txtDegree = new TextBox(); txtDegree.ID = &#8220;txtDegree1&#8221;; txtDegree.MaxLength = 50; dynDivtxtBx.Controls.Add(txtDegree);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4013","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4013"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4013\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}