title: AddWithValue method on ASP.NET
body: <p>I am using AddStringWithValue method in ASP.NET using C#</p>
  
  <p>My HTML code is </p>
  
  <pre><code>&lt;form class="login-modal-content animate" action=""&gt;   
      &lt;asp:Login ID = "Login" runat = "server" OnAuthenticate="ValidateUser"&gt;&lt;/asp:Login&gt;        
      &lt;div class="input"&gt;
          &lt;div&gt;
              &lt;input type="text" id="email" style="margin:8px 2px 5px 2px;" placeholder="Email"/&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input type="password" id="password" style="margin:5px 2px 8px 2px;" placeholder="**********"/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;button type="submit" style="display:none"&gt;&lt;/button&gt;
      &lt;f style="padding-left: 4px"&gt;Not yet registered? &lt;f style="color:rgb(176,224,230); cursor:pointer" onclick="document.getElementById('Sign_Up_Form').style.display='block';document.getElementById('Login_Form').style.display='none';"&gt;Sign Up&lt;/f&gt;&lt;/f&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My C# code for the method is:</p>
  
  <pre><code>cmd.Parameters.AddWithValue("@email", Login.email);
  cmd.Parameters.AddWithValue("@password", Login.password);
  </code></pre>
  
  <p>The problem is, it is giving red underline under  email and password. Shouldn't we  identify them with Id? Please tell me how to identify them..</p>
  
  <p>I am sorry, I still don't know how to format my codes here..</p>
  
  <p>edit:</p>
  
  <p>The error message is</p>
  
  <blockquote>
    <p>Compiler Error Message: CS1061: 'System.Web.UI.WebControls.Login' does not 
    contain a definition for 'email' and no extension method 'email' accepting a 
    first argument of type 'System.Web.UI.WebControls.Login' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>The HTML is in masterpage.master and c# code is in masterpage.master.cs</p>