I am implementing a code to automatically download files from a client site without a manual step using C # code.
My requirement is to save files using C # code, skipping the path without saving the file dialog box.
This is the code to display the Save File dialog box when you click the Download button in the C # web browser control window.
foreach (HtmlElement row in webBrowser1.Document.Window.Frames["View_Frame"].Document.GetElementsByTagName("input")) { if (row.Name == "DOWNLOADALL") { row.InvokeMember("click"); tbState.Text = "4"; break; } }
source share