Author: shah_yash@hotmail.com | Posted on: 10/25/2009 12:25:57 AM | Views : 304

I have a aspx page in which I add user controls to a placeholder through a loop
for(int i=0; i<2; i++) { control usercontrol = loadcontrol("mycontrol.ascx"); PlaceHolder1.Controls.Add(usercontrol); }
This loads two user controls to the page at run time.
My user control contains 2 text boxes (txtFirstName and txtLastName)
I have added the following code to the ascx code behind
public getFirstName { get { return txtFirstName.Text.ToString(); } } public getLastName { get { return txLastName.Text.ToString(); } } I want to save the data entered in the user controls in the aspx page to be stored in a data table when I click a submit button. I am having trouble acc ...

Go to the complete details ...