Create a Windows Application
Add WebBrowser Control
Write Code to Navigate Site
public bool isrun;
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.Url = new Uri("http://www.yourwebsite.com");
}
after this add a event DocumentCompleted
which occurs where page completely loaded
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if(!isrun)
{
webBrowser1.Document.GetElementById("login_name").InnerText = "uid";
webBrowser1.Document.GetElementById("passwd").InnerText = "pwd";
webBrowser1.Document.GetElementById("buttonid_login").InvokeMember("click");
isrun=true;
}
}