Author: JorenWillems | Posted on: 3/16/2010 6:13:32 AM | Views : 316

Hi
I work with dynamic webuser controls. Depending on a choice in a dropdownlist, I load the webuser controls from my database. In the Page_Load event, I load the controls. When the controls are loaded and a button is pressed, the values that are filled in, in the webuser controls' textboxes, must be saved in the database.
The problem is that when I click the button, the values of the textboxes are empty again. Here's my code:
public partial class FillDocParts : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ReadTemplates(); } } protected void ReadTemplates() { LabelTitel.Text = "Document: " + Session["Document"].ToString(); BLTemplate_Part blTempPart = new BLTemplate_Part(); List<Template_Part> parts = blTempPart.getTemplatePartByTemplateName(Session["T ...

Go to the complete details ...