Monday, September 23, 2013

WebBrowser Control: Password Field Won't Populate

I ran into this issue between version of IE.  On IE10 on a password field using the WebBrower's SetAttribute method works to set the "Value" field of a password field.  This does not work on IE 8 or 9.  Instead, you have to use the "InnerText" attribute.  To make sure 10 still works I have to set both the Value in addition to the InnerText value for the older browsers.