Author: speshulk926 | Posted on: 3/26/2010 9:32:41 AM | Views : 244

I have been looking around for a way to do this and I can't seem to find what I need. I have 2 checkboxes and 2 textboxes (chk1, chk2, txt1, txt2) on a content page. All I need is when one of those checkboxes are checked, then a textbox field show up and if it's unchecked for it to be removed. So if chk1 is checked, then txt1 shows up, if chk2 is checked, then txt2 shows up. I did not want to use the .visible property as it leaves a space for it and I also did not want to do a full postback every time someone clicked it. I was looking into using a usercontrol. The closest I've come to figuring out how to do this was on this page (http://www.codeproject.com/KB/user-controls/DynamicUC.aspx). I implemented what it said, but the example uses a static page and not a Content Page/Master Page. I got everything put in like I wanted it and then on the AddAndRemoveDynamicControls() ...

Go to the complete details ...