From: bthumber on
I trying to save a file using the FileUpload control but it tells me that
there is no file. Please see code:
void SaveFile()
{
if (FileUpload1.HasFile) // fails here
{
string filepath ...
}

Is there something else I need to do first???
From: Eric on
You may want to take a look at the AJAX AsyncFileUpload control.

http://www.asp.net/ajaxlibrary/act_AsyncFileUpload.ashx

It's much better than the standard file upload control.

rg,
Eric


"bthumber" wrote:

> I trying to save a file using the FileUpload control but it tells me that
> there is no file. Please see code:
> void SaveFile()
> {
> if (FileUpload1.HasFile) // fails here
> {
> string filepath ...
> }
>
> Is there something else I need to do first???