title: Display the Output in the same textbox in visual studio
body: <p>When i am giving the details, it will print in the new text box whatever values i am assigning, but i want to print the same values which i am giving in the textbox itself. I am using [httppost] and [httpGet] commands for this. </p>
  
  <p>in View page i have this code : </p>
  
  <pre><code>@{
      ViewBag.Title = "LoginPage";
  }
  &lt;h1&gt;LoginPage&lt;/h1&gt;
   &lt;form  method="post" action="/Home/LoginPage" &gt;
       &lt;table&gt;
           &lt;tr&gt;
               &lt;td&gt;First Name : &lt;/td&gt;
               &lt;td&gt;&lt;input type="text" id="txt.Fname" name="F_FIRSTNAME" class="form-control"/&gt; &lt;/td&gt; 
            &lt;/tr&gt;
           &lt;tr&gt;
               &lt;td&gt; Last Name : &lt;/td&gt;
               &lt;td&gt;&lt;input type="text" id="txt_LNAME" name="L_LastName" class="form-control"/&gt;&lt;/td&gt; 
           &lt;/tr&gt;
           &lt;tr&gt;
               &lt;td&gt;Password: &lt;/td&gt; 
               &lt;td&gt;&lt;input type="password" id="txt_Password" name="P_PASSWORD" class="form-control" /&gt; &lt;/td&gt;
           &lt;/tr&gt;
           &lt;tr&gt;
               &lt;td&gt;Email ID : &lt;/td&gt;
               &lt;td&gt;&lt;input type="email" id="txt_emailid" name="E_EmailID" class="form-control" /&gt; &lt;/td&gt;
           &lt;/tr&gt;
           &lt;tr&gt;
               &lt;td&gt;&lt;input type="submit" id="txt_Enter" name="Enter" class="btn-primary" /&gt;&lt;/td&gt;
           &lt;/tr&gt;
       &lt;/table&gt;
   &lt;/form&gt;
  
  @{ 
      if(IsPost==true)
      {
          string name1 = Request["F_FIRSTNAME"]; 
          if(!string.IsNullOrEmpty(name1))
          {
              &lt;h2 style=" color:aquamarine;" &gt; &lt;input type="text" value="@name1" /&gt; &lt;/h2&gt;
          }
          string name2 = Request["L_LASTNAME"];
          if (!string.IsNullOrEmpty(name2))
          {
              &lt;h2 style="color:blue;"&gt; &lt;input type="text" value="@name2" /&gt; &lt;/h2&gt;
          }
          string name3 = Request["P_PASSWORD"];
          if (!string.IsNullOrEmpty(name3))
          {
              &lt;h2 style="color:blue;"&gt; &lt;input type="text" value="@name3" /&gt; &lt;/h2&gt;
          }
          string name4 = Request["E_EMAILID"];
          if (!string.IsNullOrEmpty(name4))
          {
              &lt;h2 style="color:blue;"&gt; &lt;input type="text" value="@name4" /&gt;&lt;/h2&gt;
          }
          else
          {
              &lt;h5&gt;This is a get request &lt;/h5&gt;
          }
      }
  
  }
  </code></pre>
  
  <p>and in controller: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace WebApplication3.Controllers
  {
      public class HomeController : Controller
      {
          // GET: Home
          public ActionResult Index()
          {
              return View();
          }
  
          public ActionResult LoginPage()
          {
              return View(); 
          }
          [HttpPost]
          public ActionResult AfterLoginPage(string F_FIRSTNAME, stringL_LASTNAME, string P_PASSWORD, string E_EMAILID)
          {
               return View("LoginPage");
          }
      }
  }
  </code></pre>
  
  <p>[As you can see the credentials are displaying in separate text box which i created but i want to display it on the same text box ][enter image description here]<a href="https://i.stack.imgur.com/BmdLA.png" rel="nofollow noreferrer">1</a></p>