Mai Hu Na

Mai Hu Na

  • NA
  • 86
  • 133.1k

Automatic save files without show save dialog in web browser

Jul 9 2013 4:00 PM
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)