Can't get dynamically added controls

Joined
Sep 24, 2008
Messages
2
Reaction score
0
I am creating a number of textboxes dynamically from code behind and setting their Id's properly.

i am adding them in a dynamically generated table that is added to a static asp:panel.


But at the postback when i use findcontrol or iterate through every control of form, i cant find any textbox control or a table control.


I have tried creating the textboxes in the Init function also but no sucess.

Does any one has any idea ?




Below is the HTMl table generated



</div><br /><br />
<span style="font-weight:bold;">Description of CCI 1 ATTRIBUTE</span><table class="AttributeTable" cellpadding="5" border="0">
<tr>

</tr><tr>
<td><span>Child 1</span></td><td><input name="87" type="text" id="87" /></td><td><span>String </span></td>
</tr><tr>
<td><span>Child 2</span></td><td><input name="88" type="text" id="88" /></td><td><span>String </span></td>
</tr><tr>

</tr><tr>

</tr>
</table><span style="font-weight:bold;">Description of cbs 1 ATTRIBUTE</span><table class="AttributeTable" cellpadding="5" border="0">
<tr>

</tr><tr>
<td><span>child 3</span></td><td><input name="89" type="text" id="89" /></td><td><span>String </span></td>
</tr><tr>
<td><span>child 4</span></td><td><input name="90" type="text" id="90" /></td><td><span>String </span></td>
</tr><tr>

</tr><tr>

</tr>
</table>
</div>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top