{"id":3665,"date":"2014-03-29T07:44:42","date_gmt":"2014-03-29T07:44:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/checkbox-list-to-generate-one-textbox-collection-of-common-programming-errors\/"},"modified":"2014-03-29T07:44:42","modified_gmt":"2014-03-29T07:44:42","slug":"checkbox-list-to-generate-one-textbox-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/checkbox-list-to-generate-one-textbox-collection-of-common-programming-errors\/","title":{"rendered":"checkbox list to generate one textbox-Collection of common programming errors"},"content":{"rendered":"<p>So i have this checkbox list and im trying to generate a textbox when the MISC checkbox is checked.<\/p>\n<pre><code>\n                Laptop\n                Label Printer\n                Printer\n                Fax Line\n                PC\n                MFD\n                Phone Line\n                Misc\n            \n<\/code><\/pre>\n<p>ON my Cs page I have&#8230;&#8230;&#8230;<\/p>\n<pre><code>protected void chbxEquipmnt_SelectedIndexChanged(object sender, EventArgs e)\n{\n    if (chbxEquipmnt.SelectedValue == \"Misc\")\n    {\n        TextBox txt = new TextBox();\n        txt.ID = \"txtMiscCheckBox\";\n        Page.Form.Controls.Add(txt);\n    }\n}\n<\/code><\/pre>\n<p>debugging i have tried with Postback which continuously on returns the first check box that was checked&#8230;for example i checked laptop instead of Misc first, the value in the debugger always show me laptop. Im not sure if a simple loop to go thru the all the button clicks would help&#8230;..I&#8217;m fresh out of school and this is a career change for me so thanks for the patience<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So i have this checkbox list and im trying to generate a textbox when the MISC checkbox is checked. Laptop Label Printer Printer Fax Line PC MFD Phone Line Misc ON my Cs page I have&#8230;&#8230;&#8230; protected void chbxEquipmnt_SelectedIndexChanged(object sender, EventArgs e) { if (chbxEquipmnt.SelectedValue == &#8220;Misc&#8221;) { TextBox txt = new TextBox(); txt.ID = [&hellip;]<\/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-3665","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3665","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=3665"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3665\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}