Problems Uploading the PDF Files

Now, this is really strange. I planned to upload the PDF files and the "Page Not Found" page just shows up. I tried to upload an image and it worked fine. Below is the simple code that I am using. When I use a pdf file it won't even step into the method below.

 protected void BtnUpload_Click(object sender, EventArgs e)
    {
        
try
        
{
            
string path = @"C:\ServerFolder\";
            FileUpload1.SaveAs(path);
        }
        
catch (Exception ex)
        {
            
string exception = ex.Message; 
        }
    }

Any ideas?

powered by IMHO 1.3

Print | posted @ Monday, June 26, 2006 10:16 PM

Twitter