title: Textbox counter with another textbox counter
body: <p>I have two textboxes "SerialNumber" and "SerialExtension". SerialNumber is auto generated starting with 1, which increases each time I click the "Add" button. The SerialExtension textbox has to have A,B, C,etc, concatenated with the SerialNumber value dispalyed each time I click the "Display" button. For that I gave a char counter. But each time the SerialNumber increases, my char counter does not reset from 'A'. Can anyone help me out? Code in C# please.</p>
  
  <pre><code>private static int counter = 1;
  static char a = 'A';
    protected void Page_Load(object sender, EventArgs e)
      {
             txtSerialNo.Text = counter.ToString("0");
       }
  
  protected void btnAdd_Click(object sender, ImageClickEventArgs e)
      {
            counter++;
          txtSerialNo.Text = counter.ToString("0");
       }
  
  protected void btnDisplay_Click(object sender, ImageClickEventArgs e)
      {
            txtSerialextension.Text = txtSerialNo.Text + a.ToString();
            a++;
       }
  </code></pre>