المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Deturmining when a html form has been submitted [modified]



C# Programming
02-28-2010, 01:22 PM
I have a web-browser control and a HTML tag inside which im not familiar with.

Anyway ive filled in the form with the set attribute method and invoked its submit button with this delay directly underneath

while (LoginBrowser.IsBusy == true)
{
Application.DoEvents();
}
This works when the credentials are correct but im trying to detect when invalid credentials are entered in which case a massage is somehow injected into the HTML even when ********** is disabled in the browser.

TextWriter tw = new StreamWriter("output.htm");
tw.WriteLine(LoginBrowser.DocumentText);
tw.Close();
System.Diagnostics.Process.Start("output.htm");
The above is spitting out the original html form without the error message so my problem is finding a way to reliably detect when the code has been injected .

Ive tried using the Document completed event but the browser isnt navigating anywhere.modified on Saturday, February 27, 2010 4:23 PM