Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: webservice and SQL Server 2008 Pin
Richard MacCutchan12-Mar-13 2:12
mveRichard MacCutchan12-Mar-13 2:12 
QuestionRe: webservice and SQL Server 2008 Pin
jojoba201112-Mar-13 6:49
jojoba201112-Mar-13 6:49 
AnswerRe: webservice and SQL Server 2008 Pin
Richard MacCutchan12-Mar-13 6:54
mveRichard MacCutchan12-Mar-13 6:54 
QuestionRemote File Upload Through ASP .Net page Pin
Vodstok11-Mar-13 5:54
Vodstok11-Mar-13 5:54 
QuestionRe: Remote File Upload Through ASP .Net page Pin
jkirkerx11-Mar-13 8:26
professionaljkirkerx11-Mar-13 8:26 
AnswerRe: Remote File Upload Through ASP .Net page Pin
Vodstok11-Mar-13 8:31
Vodstok11-Mar-13 8:31 
GeneralRe: Remote File Upload Through ASP .Net page Pin
jkirkerx11-Mar-13 9:56
professionaljkirkerx11-Mar-13 9:56 
AnswerRe: Remote File Upload Through ASP .Net page Pin
Richard Deeming11-Mar-13 9:13
mveRichard Deeming11-Mar-13 9:13 
Is the old page written in ASP.NET? If so, you'll probably have to issue a GET request first, find the hidden view-state and event validation fields, and include those fields in your POST request.

Once you've got the data you need to send, you'll need to build and send a multipart/form-data request. Unfortunately, there's no built-in way to do that prior to .NET 4.5, but there are quite a few examples floating around for earlier versions. Eg: UploadFileEx: C#'s WebClient.UploadFile with more functionality[^]

If you're using .NET 4.5, you can use the new HttpClient[^] class from the System.Net.Http[^] assembly, combined with the MultipartFormDataContent[^] class.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Remote File Upload Through ASP .Net page Pin
Vodstok11-Mar-13 9:26
Vodstok11-Mar-13 9:26 
GeneralRe: Remote File Upload Through ASP .Net page Pin
Vodstok12-Mar-13 4:20
Vodstok12-Mar-13 4:20 
GeneralRe: Remote File Upload Through ASP .Net page Pin
Richard Deeming12-Mar-13 4:36
mveRichard Deeming12-Mar-13 4:36 
GeneralRe: Remote File Upload Through ASP .Net page Pin
Vodstok12-Mar-13 5:13
Vodstok12-Mar-13 5:13 
GeneralRe: Remote File Upload Through ASP .Net page Pin
Vodstok14-Mar-13 4:27
Vodstok14-Mar-13 4:27 
QuestionASP.Net MVC 4? Pin
silentspeaker11-Mar-13 3:38
silentspeaker11-Mar-13 3:38 
AnswerRe: ASP.Net MVC 4? Pin
Sandeep Mewara11-Mar-13 4:16
mveSandeep Mewara11-Mar-13 4:16 
AnswerRe: ASP.Net MVC 4? Pin
Thomas Daniels11-Mar-13 8:40
mentorThomas Daniels11-Mar-13 8:40 
Questionrunat=server Pin
tiwal11-Mar-13 0:47
tiwal11-Mar-13 0:47 
AnswerRe: runat=server Pin
Deflinek11-Mar-13 4:24
Deflinek11-Mar-13 4:24 
AnswerRe: runat=server Pin
Sandeep Mewara11-Mar-13 4:26
mveSandeep Mewara11-Mar-13 4:26 
AnswerRe: runat=server Pin
jkirkerx11-Mar-13 9:06
professionaljkirkerx11-Mar-13 9:06 
Questionquery regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 0:28
professionalTridip Bhattacharjee11-Mar-13 0:28 
AnswerRe: query regarding session nature Pin
Keith Barrow11-Mar-13 0:54
professionalKeith Barrow11-Mar-13 0:54 
GeneralRe: query regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 1:07
professionalTridip Bhattacharjee11-Mar-13 1:07 
GeneralRe: query regarding session nature Pin
Keith Barrow11-Mar-13 1:22
professionalKeith Barrow11-Mar-13 1:22 
GeneralRe: query regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 4:49
professionalTridip Bhattacharjee11-Mar-13 4:49 

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.