请教大家webbrowser对文本框赋值的问题
    我想用webbrowser 往一个文本框赋值。
   登录:http://reg.hexun.com/login.aspx
   用户名:fuzhuangtmd@163.com 密码:xinmima
   
   进去之后到这个页面:http://post.blog.hexun.com/
    文本框ID和name 均为ContentSpaw 通过webBrowser1.Document.GetElementById("ContentSpaw").InnerText = username;
出现异常
   浏览器定位文本框元素在 iframe 浮动框架内。
   请教大家怎么做
   
    
   
------解决方案--------------------这个可以得到htmlelent元素
但赋不了殖
LZ自己研究下吧
------解决方案--------------------HtmlElement tbUserid = webBrowser.Document.All["username"];   
HtmlElement tbPasswd = webBrowser.Document.All["password"];   
tbUserid.SetAttribute("value", "");   
tbPasswd.SetAttribute("value", "");