Click here to Skip to main content
15,502,871 members
Home / Discussions / C#
   

C#

 
GeneralRe: Global structure in Main, Functions and .dlls Pin
zequion4-Jan-17 7:41
professionalzequion4-Jan-17 7:41 
GeneralRe: Global structure in Main, Functions and .dlls Pin
Richard MacCutchan4-Jan-17 7:47
mveRichard MacCutchan4-Jan-17 7:47 
GeneralRe: Global structure in Main, Functions and .dlls Pin
zequion4-Jan-17 8:57
professionalzequion4-Jan-17 8:57 
GeneralRe: Global structure in Main, Functions and .dlls Pin
Richard MacCutchan4-Jan-17 22:27
mveRichard MacCutchan4-Jan-17 22:27 
AnswerRe: Global structure in Main, Functions and .dlls Pin
Gerry Schmitz4-Jan-17 8:52
mveGerry Schmitz4-Jan-17 8:52 
Questionhow to store the value selection on calendar in database Pin
being A.S.3-Jan-17 19:37
being A.S.3-Jan-17 19:37 
AnswerRe: how to store the value selection on calendar in database Pin
dan!sh 3-Jan-17 20:55
professional dan!sh 3-Jan-17 20:55 
QuestionRetrieving data from a webpage Pin
MAW303-Jan-17 14:46
MAW303-Jan-17 14:46 
I am trying to retreive data from a webpage with a label saying "export". The data is partially showing on the screen, if I manually click on "export" a window comes up and ask to save, save as, or cancel. I then save all data to my computer as a csv file. However when trying to get the data using c# I get the code behind "export" and not the data, code starts out as "".

I am using the following code:
WebClient webClient = new WebClient();
webClient.UseDefaultCredentials = false;
webClient.Credentials = new NetworkCredential(strUsername, strPassword);
webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
webClient.DownloadFile(url, @strOutputFile);


*note url is for "export".

Can someone please point me in the right direction.
Any help will be greatly appreciated.
Thanks in advance.
Michael

modified 3-Jan-17 20:49pm.

AnswerRe: Retrieving data from a webpage Pin
dan!sh 3-Jan-17 18:30
professional dan!sh 3-Jan-17 18:30 
GeneralRe: Retrieving data from a webpage Pin
MAW303-Jan-17 20:01
MAW303-Jan-17 20:01 
GeneralRe: Retrieving data from a webpage Pin
dan!sh 3-Jan-17 20:53
professional dan!sh 3-Jan-17 20:53 
GeneralRe: Retrieving data from a webpage Pin
MAW303-Jan-17 22:28
MAW303-Jan-17 22:28 
GeneralRe: Retrieving data from a webpage Pin
dan!sh 3-Jan-17 23:01
professional dan!sh 3-Jan-17 23:01 
GeneralRe: Retrieving data from a webpage Pin
MAW304-Jan-17 5:43
MAW304-Jan-17 5:43 
AnswerRe: Retrieving data from a webpage Pin
MAW304-Jan-17 19:59
MAW304-Jan-17 19:59 
QuestionRe: Retrieving data from a webpage Pin
Richard MacCutchan4-Jan-17 22:57
mveRichard MacCutchan4-Jan-17 22:57 
AnswerRe: Retrieving data from a webpage Pin
MAW305-Jan-17 3:30
MAW305-Jan-17 3:30 
QuestionC# Text to Speech Pin
Pavlex42-Jan-17 11:32
Pavlex42-Jan-17 11:32 
AnswerRe: C# Text to Speech Pin
Michael_Davies2-Jan-17 11:38
Michael_Davies2-Jan-17 11:38 
GeneralRe: C# Text to Speech Pin
Pavlex42-Jan-17 11:40
Pavlex42-Jan-17 11:40 
GeneralRe: C# Text to Speech Pin
Pavlex42-Jan-17 12:26
Pavlex42-Jan-17 12:26 
GeneralRe: C# Text to Speech Pin
Pete O'Hanlon2-Jan-17 20:33
mvaPete O'Hanlon2-Jan-17 20:33 
GeneralRe: C# Text to Speech Pin
Bernhard Hiller2-Jan-17 22:27
Bernhard Hiller2-Jan-17 22:27 
QuestionXml Serialization of List<T> Pin
Richard Andrew x642-Jan-17 7:18
professionalRichard Andrew x642-Jan-17 7:18 
AnswerRe: Xml Serialization of List<T> Pin
Eddy Vluggen2-Jan-17 7:37
professionalEddy Vluggen2-Jan-17 7:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.