title: how dynamic created texbox value visible?(lost in post back)
body: <p>The <code>lnkcat</code> is the linkbutton for Category  and <code>lnksubcat</code> is the link button for Sub-category:</p>
  
  <p>My problem is when i click on <code>lnk_cat</code> the corresponding label and textbox will be displayed... but i click on next lnk subcat will be removed....I want to hold these textboxes corresponding labels on the placeholder till i click on submit:</p>
  
  <pre><code>protected void lnkCat_Click(object sender, EventArgs e)
  
  {    
      //Panel2.Visible = false;
      //Panel1.Visible = true;
      Label lblCat = new Label();
      lblCat.Text = "Enter new Category: ";
      PHcat.Controls.Add(lblCat);
  
      txtCat = new TextBox();
      _Cat = txtCat.Text;
      PhtxtCat.Controls.Add(txtCat);
      Session["Dynalbl"] = lblCat;
      Session["Dynatxt"] = txtCat;
  }
  
  protected void lnkSubCat_Click(object sender, EventArgs e)
  {
      //Panel1.Visible = true;
      //Panel2.Visible = true;
  
      Label lblSubcat = new Label();
      lblSubcat.Text =  "Enter new Sub-Category: ";
      PHsubCat.Controls.Add(lblSubcat);
  
      txtSubCat = new TextBox();
      _SubCat = txtSubCat.Text;
      PhtxtSubCat.Controls.Add(txtSubCat);
  }
  </code></pre>
  
  <p>Can anyone suggest to solve this issue? please!!</p>
  
  <p>Thank you... </p>