title: How can I eliminate code repetition while setting control visibility?
body: <p>I have 4 text boxes ,i write 4 functions ,in each function i want one textbox to be visible true others false.</p>
  
  <pre><code>function1()
  {
      Txtbox1.visible=true;
      Txtbox2.visble=false;
      Txtbox3.visible=false;
      TxtBox4.visible=false;
  }
  </code></pre>
  
  <p>similarly i write 3 more function to make other text boxes visibility to true.How to do code optimization  c#,Asp.net  </p>