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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 11, 2013, 2:54 AM
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
Anuradha KulkarniPosted Jul 11, 2013, 2:45 AM
{ 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 HussainPosted Jul 11, 2013, 2:40 AM
Can you please share your code?
Regards,
Iftikar