title: Webbrowser SetAttribute not working (Password Field)
body: <p>tried to write a program which logs me in automatically in a webbrowser in c#. This is the code i use at the moment for this purpose:</p>
  
  <pre><code>HtmlElementCollection pageTextElements = loginBrowser.Document.GetElementsByTagName("input");
          foreach (HtmlElement element in pageTextElements)
          {
              if (element.Name.Equals("username"))
                  element.SetAttribute("value", this.UserName);
              if (element.Name.Equals("password"))
                  element.SetAttribute("value", this.Password);
          }
  </code></pre>
  
  <p>It fills in the Username, but not the password? ):
  Googled around but there are only a few people which started topic to which no one ever replied. /:</p>
  
  <p>hopefully someone can help me.
  this is the source auf the password field:</p>
  
  <pre><code>&lt;input type="password" value="" maxlength="50" size="25" name="password" class="bginput"&gt;
  </code></pre>