title: How to store the username of the LoginName Control from the LoginView into a textbox control
body: <p>I have a submission form developed in ASP.NET C# and I'm trying to store the username of the LoginName control into a text box control. In simplest terms, make the username display inside a textbox. I'm able to store the current date into a textbox control using the following:</p>
  
  <pre><code>dateCreated.Text = DateTime.Now.ToString();
  </code></pre>
  
  <p>...with dateCreated being the id of the Textbox control and it works fine.</p>
  
  <p>The following is what I'm attempting to do for the LoginName control:</p>
  
  <pre><code>createdBy.Text = LoginName1.ClientID; 
  </code></pre>
  
  <p>...with createdBy being the id of the textbox control am attempting to store the username into. The following is the design for my LoginView Control:</p>
  
  <pre><code>&lt;asp:LoginView ID="LoginView1" runat="server"&gt;
  &lt;AnonymousTemplate&gt;
     You are not Logged in, Click the login link to sign in
  &lt;/AnonymousTemplate&gt;
  &lt;LoggedInTemplate&gt;
     You are Logged in. Welcome, &lt;asp:LoginName ID="LoginName1" runat="server"/&gt;
  &lt;LoggedInTemplate&gt;
  &lt;/asp:LoginView&gt;
  </code></pre>
  
  <p>but, I'm stuck as to what definition I'm to apply to the LoginName1. Could I please get some help as to how I'm to accomplish this task? I'm new to .Net, Thank You </p>