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.
}
}
Loading

Deena elizPosted May 15, 2015, 6:05 AM
Mai Hu NaPosted Jul 10, 2013, 4:48 AM
Iftikar HussainPosted Jul 10, 2013, 4:28 AM
Regards,
Iftikar
Mai Hu NaPosted Jul 10, 2013, 4:19 AM
Iftikar HussainPosted Jul 10, 2013, 4:04 AM
also check your code to download .txt or .xls file, weather it is downloading or not?
Regards,
Iftikar
Mai Hu NaPosted Jul 10, 2013, 4:00 AM
Iftikar HussainPosted Jul 10, 2013, 3:53 AM
Regards,
Iftikar
Mai Hu NaPosted Jul 10, 2013, 3:26 AM
u there? Iftikar
Iftikar HussainPosted Jul 10, 2013, 3:24 AM
Regards,
Iftikar
Mai Hu NaPosted Jul 10, 2013, 3:19 AM
Iftikar HussainPosted Jul 10, 2013, 3:14 AM
Regards,
Iftikar
Mai Hu NaPosted Jul 10, 2013, 3:12 AM
You are not logged on. Please logon first.
instead of Actual Content
Iftikar HussainPosted Jul 10, 2013, 2:46 AM
Try like this
bool isFound = false;
string url="";
foreach (HtmlElement row in webBrowser1.Document.Window.Frames["View_Frame"].Document.GetElementsByTagName("TR"))
{
foreach (HtmlElement link in row.GetElementsByTagName("A"))
{
}
}
Regards,
Iftikar