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


Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 10:46 PM EDT
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
Mai Hu Na84 reputationPosted Jul 9, 2013, 11:12 PM EDT
You are not logged on. Please logon first.
instead of Actual Content
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 11:14 PM EDT
Regards,
Iftikar
Mai Hu Na84 reputationPosted Jul 9, 2013, 11:19 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 11:24 PM EDT
Regards,
Iftikar
Mai Hu Na84 reputationPosted Jul 9, 2013, 11:26 PM EDT
u there? Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 11:53 PM EDT
Regards,
Iftikar
Mai Hu Na84 reputationPosted Jul 10, 2013, 12:00 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 12:04 AM EDT
also check your code to download .txt or .xls file, weather it is downloading or not?
Regards,
Iftikar
Mai Hu Na84 reputationPosted Jul 10, 2013, 12:19 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 12:28 AM EDT
Regards,
Iftikar
Mai Hu Na84 reputationPosted Jul 10, 2013, 12:48 AM EDT
Deena eliz49 reputationPosted May 15, 2015, 2:05 AM EDT