Hello!
I study C # and the idea arose to programmatically log in to the site. How to check whether I am authorized or not?
webBrowser1.Navigate("http://www.site.ru/"); webBrowser1.Document.GetElementById("username").SetAttribute("value", "user"); webBrowser1.Document.GetElementById("password").SetAttribute("value", "password"); foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input")) { if (he.GetAttribute("value").Equals("login")) { he.InvokeMember("click"); break; } }