title: Get the input from a form to display in textbox in the same web page
body: <p>My form collecting input.</p>
  
  <pre><code>        &lt;table&gt;
         &lt;tr&gt;
           &lt;td&gt;First Name:&lt;/td&gt;
           &lt;td&gt;&lt;asp:TextBox ID="txtFirstName" runat="server"&gt;
              &lt;/asp:TextBox&gt;
           &lt;/td&gt;
           &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator ID="rfvFirstName" 
                       runat="server" 
                       ControlToValidate="txtFirstName"
                      ErrorMessage="First Name can't be left blank" 
                      SetFocusOnError="True"&gt;*
               &lt;/asp:RequiredFieldValidator&gt;
               &lt;asp:DropDownList ID="DropDownList1" runat="server"&gt;
               &lt;asp:ListItem&gt;Business&lt;/asp:ListItem&gt;
               &lt;asp:ListItem&gt;Other&lt;/asp:ListItem&gt;
               &lt;/asp:DropDownList&gt;
          &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
          &lt;td&gt;Last Name:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtLastName" runat="server"&gt;
              &lt;/asp:TextBox&gt;&lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator 
                   ID="RequiredFieldValidator1" runat="server" 
                   ControlToValidate="txtLastName"
                   ErrorMessage="Last Name can't be left blank" 
                   SetFocusOnError="True"&gt;*
              &lt;/asp:RequiredFieldValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
  
          &lt;tr&gt;&lt;td&gt;UserName:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtUserName" runat="server"&gt;
              &lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator 
                   ID="rfvUserName" 
                   runat="server" 
                   ControlToValidate="txtUserName"
                   ErrorMessage="UserName can't be left blank" 
                   SetFocusOnError="True"&gt;*
              &lt;/asp:RequiredFieldValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
  
          &lt;tr&gt;&lt;td&gt;Password:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtPwd" runat="server"
                           TextMode="Password"&gt;
              &lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator ID="rfvPwd" 
                   runat="server" ControlToValidate="txtPwd"
                   ErrorMessage="Password can't be left blank" 
                   SetFocusOnError="True"&gt;*
             &lt;/asp:RequiredFieldValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
  
          &lt;tr&gt;&lt;td&gt;Confirm Password:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtRePwd" runat="server"
                           TextMode="Password"&gt;
              &lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:CompareValidator ID="CompareValidator1" 
                   runat="server" 
                   ControlToCompare="txtRePwd" 
                   ControlToValidate="txtPwd" 
                   Operator="Equal" 
                   ErrorMessage="Password and confirm password do not match" 
                   SetFocusOnError="True"&gt;
              &lt;/asp:CompareValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
  
          &lt;tr&gt;&lt;td class="style1"&gt;Gender:&lt;/td&gt;
          &lt;td class="style1"&gt;&lt;asp:RadioButtonList ID="rdoGender" 
                                   runat="server"&gt;
                   &lt;asp:ListItem&gt;Male&lt;/asp:ListItem&gt;
                   &lt;asp:ListItem&gt;Female&lt;/asp:ListItem&gt;
              &lt;/asp:RadioButtonList&gt;
          &lt;/td&gt;
          &lt;td class="style3"&gt;&lt;asp:RequiredFieldValidator 
                   ID="RequiredFieldValidator2" 
                   runat="server" 
                   ControlToValidate="rdoGender"
                   ErrorMessage="Gender can't be left blank" 
                   SetFocusOnError="True"&gt;*
               &lt;/asp:RequiredFieldValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
  
          &lt;tr&gt;&lt;td&gt;Address:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtAdress" runat="server" 
                           TextMode="MultiLine"&gt;
              &lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator ID="rfvAddress" 
                  runat="server" 
                   ControlToValidate="txtAdress"
                  ErrorMessage="Address can't be left blank" 
                 SetFocusOnError="True"&gt;*
              &lt;/asp:RequiredFieldValidator&gt;
          &lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;Email ID:&lt;/td&gt;
          &lt;td&gt;&lt;asp:TextBox ID="txtEmailID" runat="server"&gt;
              &lt;/asp:TextBox&gt;
          &lt;/td&gt;
          &lt;td class="style2"&gt;&lt;asp:RequiredFieldValidator 
                  ID="RequiredFieldValidator3" 
                  runat="server" 
                  ControlToValidate="txtEmailID"
                  ErrorMessage="Email can't be left blank" 
                  SetFocusOnError="True"&gt;*
             &lt;/asp:RequiredFieldValidator&gt;
         &lt;/td&gt;&lt;/tr&gt;
         &lt;tr&gt;&lt;td&gt;&lt;asp:Label ID="lblMsg" runat="server"&gt;
                 &lt;/asp:Label&gt;
            &lt;/td&gt;
         &lt;td&gt;&lt;asp:ValidationSummary ID="ValidationSummary1" 
                  runat="server" ShowMessageBox="True" 
                  ShowSummary="False"/&gt;
         &lt;/td&gt;&lt;/tr&gt;
         &lt;tr&gt;&lt;td&gt;&lt;asp:Button ID="btnSave" runat="server" 
                         Text="Sign Up" 
                         onclick="btnSave_Click"/&gt;
     &lt;/td&gt;&lt;/tr&gt;
     &lt;/table&gt;
  </code></pre>
  
  <p>I know this is set up for a server which I will work on next,
  right now I am just trying to get the btnsave button to display the input from the form into a plain textbox.
  How is this done?</p>