title: How to hide and display item templates in formview depending on some conditions?
body: <p>Here I am getting  some  values from previous page using session to check the condition:</p>
  
  <pre><code>  string PTN = Session["PrimaryTool"].ToString();
    string PTE = Session["PrimaryToolExp"].ToString();
    if (PTN != null &amp;&amp; PTE != null)
    {
       if (fvJobApplying.CurrentMode == FormViewMode.ReadOnly)
       {
           Label PT = (Label)fvJobApplying.FindControl("lblPrimaryTool");
           PT.Visible = true;
  
           Label PTExperience = (Label)fvJobApplying.FindControl("lblPrimaryToolExp");
           PTExperience.Visible = true;
           Label Experience = (Label)fvJobApplying.FindControl("lblExperience");
           Experience.Visible = false;
       }
  }
  </code></pre>
  
  <p>My session values and my condition works fine... Here depending on condition how to show and hide columns or item templates in formview in asp.net</p>