13
Answers

Automatic save files without show save dialog in web browser

Mai Hu Na

Mai Hu Na

9y
12.4k
1
hi friends,

here is my code in webBrowser1_DocumentCompleted() method. when i click on link it show save file dialog.my requirement is save files on provided folder path without any pop up through c# code or java Script.


foreach (HtmlElement row in webBrowser1.Document.Window.Frames["View_Frame"].Document.GetElementsByTagName("TR"))
{
  foreach (HtmlElement link in row.GetElementsByTagName("A"))
  {
  //code to click on weblink to download files.  
  }
}


Attachment: code.rar

Answers (13)