I am implementing code to automatic download files from client site without manual step using C# code.
My requirement is to save the files through C# code by passing path without save file dialog.
This is code to show the Save file dialog when click on Download button in C# window WebBrowser control .
foreach (HtmlElement row in webBrowser1.Document.Window.Frames["View_Frame"].Document.GetElementsByTagName("input"))
{
if (row.Name == "DOWNLOADALL")
{
row.InvokeMember("click");
tbState.Text = "4";
break;
}
}