If you want to generate dynamic controls. Do them in Page_PreInit event. In order to retrieve their values you need to use FindControl method as you can't access dynamically generated controls in code by using their IDs.
Hope this answers your query.. On Feb 19, 8:46 pm, Jamie Fraser <[email protected]> wrote: > Code? > > On Thu, Feb 18, 2010 at 12:05 PM, aditya chavan <[email protected]> wrote: > > Hello, > > > I want to generate the dynamic label and text fields in asp.net using C#, > > On the text changed event of the other text field and then retrive its value > > and to save that into the database. for example: one text filed ask for the > > number to generate the fields and then save that to the database. > > I used table controls to create the fields but not able to save the data to > > the data base. > > > Please Help on this issue as soon as possible. > > > Aditya Chavan
