hi everybody i work with windows form web browers control i want to show message of sucess login or fail after passing info to web page
- private void btnlog_Click(object sender, EventArgs e)
- {
- if (webBrowserlogin.Url.PathAndQuery == ("/bbbb/login.aspx"))
- {
-
- HtmlElement ele = webBrowserlogin.Document.GetElementById("TextBox1");
- if (ele != null)
- ele.InnerText = txt1.Text.Trim();
-
- ele = webBrowserlogin.Document.GetElementById("TextBox2");
- if (ele != null)
- ele.InnerText = txt2.Text.Trim();
-
- ele = webBrowserlogin.Document.GetElementById("TextBox3");
- if (ele != null)
- ele.InnerText = txt3.Text.Trim();
-
-
- var theElementCollectionChildNext = webBrowserlogin.Document.GetElementsByTagName("input");
- foreach (HtmlElement elChild in theElementCollectionChildNext)
- {
- if (elChild.Id == "Button5")
- {
- elChild.InvokeMember("click");
- break;
- }
- }
-
- }
-
-
- }