How to access values of dynamically created TextBoxes
- by SAMIR BHOGAYTA
If one adds controls dynamically to a page and wants to get their information after PostBack, one needs to recreate these elements after the PostBack. Let's consider the following idea: First you create some controls:
for(int i=0;i
TextBox objBox = new TextBox();
objBox.ID = "objBox" + i.ToString();
…