Hi ,
i gave hard coded path in code so not need showing dialog box then
can you tell me how to hide save dialog box when downloading.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 10:40 PM EDT
Can you please share your code?
Regards,
Iftikar
Anuradha Kulkarni4 reputationPosted Jul 10, 2013, 10:45 PM EDT
{ Username = " ";
Password = " ";
FanMailSiteName ="site name" ;
Advisorname = "Pershing";
DownloadFilePath = "C:\\Client Data Feeds\\United Planners\\Pershing";
SignIN(); }
public void SignIN()
{
try
{
if (tbState.Text == "0" && Advisorname=="Pershing")
{
SetStatus("Contacting Pershing web site ....");
webBrowser1.Navigate(FanMailSiteName);
}
else if (tbState.Text == "0")
{
SetStatus("Contacting DST Fanmail web site ....");
webBrowser1.Navigate(FanMailSiteName);
} }
catch (Exception exc)
{
SetStatus("Error In Navigate /n : " + exc.Message.ToString());
} }
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 10:54 PM EDT
private void button1_Click(object sender, EventArgs e)
{ Username = " ";
Password = " ";
FanMailSiteName ="site name" ;
Advisorname = "Pershing";
DownloadFilePath = "C:\\Client Data Feeds\\United Planners\\Pershing";
SignIN(); }
public void SignIN()
{
try
{
if (tbState.Text == "0" && Advisorname=="Pershing")
{
SetStatus("Contacting Pershing web site ....");
webBrowser1.Navigate(FanMailSiteName);
}
else if (tbState.Text == "0")
{
SetStatus("Contacting DST Fanmail web site ....");
WebClient client = new WebClient();
client.Credentials=new NetworkCredential("userName","Password");
client.DownloadFile(FanMailSiteName, DownloadFilePath + fileName);
} }
catch (Exception exc)
{
SetStatus("Error In Navigate /n : " + exc.Message.ToString());
} }
Regards,
Iftikar