Click here to Skip to main content
15,914,381 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: BULKY CRYSTAL REPORT Pin
Don Teflon1-Aug-06 9:56
Don Teflon1-Aug-06 9:56 
GeneralRe: BULKY CRYSTAL REPORT Pin
Chintan Parikh2-Aug-06 5:34
Chintan Parikh2-Aug-06 5:34 
QuestionHow to track Form.WindowState changes? Pin
Super Lloyd29-Jul-06 1:34
Super Lloyd29-Jul-06 1:34 
AnswerRe: How to track Form.WindowState changes? Pin
Robert Rohde30-Jul-06 4:22
Robert Rohde30-Jul-06 4:22 
GeneralRe: How to track Form.WindowState changes? Pin
Super Lloyd30-Jul-06 5:00
Super Lloyd30-Jul-06 5:00 
QuestionStrange .NET 2.0 Windows forms layout issues (on Win2K) Pin
AndyJay28-Jul-06 12:48
AndyJay28-Jul-06 12:48 
AnswerRe: Strange .NET 2.0 Windows forms layout issues (on Win2K) Pin
Super Lloyd29-Jul-06 1:36
Super Lloyd29-Jul-06 1:36 
QuestionUpload a file with parameters and a progress bar (HTTP POST) Pin
vikramUverse28-Jul-06 8:30
vikramUverse28-Jul-06 8:30 
Hola, I am trying to use C# to make a HTTP POST request. This request should carry file data, and have some parameters in it as well.

This is quite easy with HTTPRequest, but the problem is, I need progress information as well, and the only apparent way to do this is to use the WebClient classes (UploadFile or UploadData). I've been trying both the whole day, without much success.


My code looks something like this:

WebClient client = new WebClient();
Uri uri = new Uri(url);

// Placing the parameters in a name-value collection
NameValueCollection param = new NameValueCollection();

foreach(string[] nameValuePair in parameters)
param.Add(nameValuePair[0], nameValuePair[1]);

// Addin headers.
client.Headers.Add("User-Agent", "MyApp");

// Adding the parameters
client.QueryString = param;


client.UploadFileAsync(uri, "POST", fileName);


Basically, judging from the server response, it appears that the server can see that a file is coming in, but cannot read any of the parameters that I send along in the request. To make matters worse, WebClient is doing something dodgy while using the HTTP protocol: none of the requests turn up on my HTTP sniffer! So I can't tell what is going out of my computer.

Help!!!

- Vikram
AnswerRe: varying GUI performance on different machines Pin
Rob Graham28-Jul-06 2:38
Rob Graham28-Jul-06 2:38 
GeneralRe: varying GUI performance on different machines Pin
aryabinin28-Jul-06 4:38
aryabinin28-Jul-06 4:38 
QuestionSerial Port Communication Pin
analytiks27-Jul-06 23:51
analytiks27-Jul-06 23:51 
AnswerRe: Serial Port Communication Pin
Mike Dimmick28-Jul-06 3:32
Mike Dimmick28-Jul-06 3:32 
QuestionEdit a column in a datagrid without using an edit column in C# Pin
Mons211027-Jul-06 5:07
Mons211027-Jul-06 5:07 
Questionwindows service and mapped drives [modified] Pin
Captain Willard27-Jul-06 2:09
Captain Willard27-Jul-06 2:09 
AnswerRe: windows service and mapped drives Pin
Mike Dimmick28-Jul-06 3:37
Mike Dimmick28-Jul-06 3:37 
GeneralRe: windows service and mapped drives Pin
Captain Willard31-Jul-06 1:23
Captain Willard31-Jul-06 1:23 
Questionto change managed assembly attribute programmatically [modified] Pin
Mushtaque Nizamani26-Jul-06 19:13
Mushtaque Nizamani26-Jul-06 19:13 
QuestionConvert and handle video files Pin
edonistart26-Jul-06 3:47
edonistart26-Jul-06 3:47 
QuestionSqlServer evaluation period expired Pin
lehya26-Jul-06 2:25
lehya26-Jul-06 2:25 
AnswerRe: SqlServer evaluation period expired Pin
Dan Neely26-Jul-06 2:42
Dan Neely26-Jul-06 2:42 
AnswerSqlServer evaluation period expired Pin
Hesbon Ongira27-Jul-06 22:37
Hesbon Ongira27-Jul-06 22:37 
QuestionCall to Web Service using HTTP GET does NOT work Pin
Andrew Mercer26-Jul-06 0:49
Andrew Mercer26-Jul-06 0:49 
AnswerRe: Call to Web Service using HTTP GET does NOT work Pin
mr_lasseter26-Jul-06 12:50
mr_lasseter26-Jul-06 12:50 
GeneralRe: Call to Web Service using HTTP GET does NOT work Pin
Andrew Mercer26-Jul-06 22:22
Andrew Mercer26-Jul-06 22:22 
QuestionUnmanaged C++, windows service Pin
yoti1126-Jul-06 0:36
yoti1126-Jul-06 0:36 

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.