winforms - Knowing when a browser control receives a prompt for information c# -
I have a webbrover element in windows projects waiting for the document. However, the first page has been marked as "Load", there is an indication that asks for information. How can I program against this scenario; This is the site so that you can indicate that you are indicating:
Just to be clear, I am looking for an incident that should be done when this popup box comes under my browser control Will go
This looks like a standard authentication challenge by the site.
Whenever you make a web it will probably fail with 401 because you have not supplied any credentials.
When you navigate, you can do this (replace username and password strings with correct credentials)
string HDR = "authorization: basic" + convert .ToBase64String (Encoding. ASCIIGetBytes ("Username" + ":" + "Password")) + System. environment. new line; WebBrowser1.Navigate ("www.url.com", blank, null, HDR);
Comments
Post a Comment