Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralPerformance: String.Length==0 or String == String.Empty Pin
Corinna John11-May-04 2:12
Corinna John11-May-04 2:12 
GeneralRe: Performance: String.Length==0 or String == String.Empty Pin
Paul Watson11-May-04 3:04
sitebuilderPaul Watson11-May-04 3:04 
GeneralRe: Performance: String.Length==0 or String == String.Empty Pin
Judah Gabriel Himango11-May-04 3:47
sponsorJudah Gabriel Himango11-May-04 3:47 
GeneralRe: Performance: String.Length==0 or String == String.Empty Pin
OmegaSupreme11-May-04 3:54
OmegaSupreme11-May-04 3:54 
GeneralRe: Performance: String.Length==0 or String == String.Empty Pin
Heath Stewart11-May-04 4:29
protectorHeath Stewart11-May-04 4:29 
GeneralConvert char* to string Pin
peraonline11-May-04 2:09
peraonline11-May-04 2:09 
GeneralRe: Convert char* to string Pin
bertcox11-May-04 3:26
bertcox11-May-04 3:26 
GeneralRe: Convert char* to string Pin
Judah Gabriel Himango11-May-04 3:49
sponsorJudah Gabriel Himango11-May-04 3:49 
GeneralRe: Convert char* to string Pin
peraonline11-May-04 20:32
peraonline11-May-04 20:32 
GeneralRe: Convert char* to string Pin
Heath Stewart12-May-04 2:55
protectorHeath Stewart12-May-04 2:55 
GeneralRe: Convert char* to string Pin
peraonline12-May-04 3:10
peraonline12-May-04 3:10 
GeneralRe: Convert char* to string Pin
Heath Stewart12-May-04 3:57
protectorHeath Stewart12-May-04 3:57 
GeneralRe: Convert char* to string Pin
peraonline12-May-04 4:03
peraonline12-May-04 4:03 
GeneralCharacter Encoding Pin
gUrM33T11-May-04 1:45
gUrM33T11-May-04 1:45 
GeneralRe: Character Encoding Pin
Mike Dimmick11-May-04 3:33
Mike Dimmick11-May-04 3:33 
GeneralRe: Character Encoding Pin
Paul Watson11-May-04 4:11
sitebuilderPaul Watson11-May-04 4:11 
GeneralRe: Character Encoding Pin
Heath Stewart11-May-04 4:25
protectorHeath Stewart11-May-04 4:25 
GeneralbeginInvoke() Pin
sreejith ss nair11-May-04 1:32
sreejith ss nair11-May-04 1:32 
GeneralRe: beginInvoke() Pin
Heath Stewart11-May-04 4:14
protectorHeath Stewart11-May-04 4:14 
GeneralRe: beginInvoke() Pin
Paul Watson11-May-04 4:14
sitebuilderPaul Watson11-May-04 4:14 
GeneralHTTP request,response Pin
dcronje11-May-04 1:05
dcronje11-May-04 1:05 
GeneralRe: HTTP request,response Pin
Heath Stewart11-May-04 4:05
protectorHeath Stewart11-May-04 4:05 
ASP.NET already supports this and wraps it in a nice, neat API for you. All you need to do is include file input controls on your .aspx page (<input type="file" ...>) inside a <form>. The client portion is done.

For the server portion, see the Files Property[^] of the HttpRequest class, which you can get from Page.Request. This returns you an HttpFileCollection, which contains a collection of HttpPostFile instance. This takes the difficulties out of MIME-multipart that is used to upload files with an HTTP POST.

The documentation for the HttpRequest.Files property does contain an example.

And next time post this in the ASP.NET forum.

 

Microsoft MVP, Visual C#
My Articles
Generalhelp on wmi and registry Pin
chettu11-May-04 0:54
chettu11-May-04 0:54 
GeneralRe: help on wmi and registry Pin
Heath Stewart11-May-04 3:59
protectorHeath Stewart11-May-04 3:59 
GeneralRe: help on wmi and registry Pin
chettu11-May-04 20:18
chettu11-May-04 20:18 

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.