Category: ASP.NET

* Create design code

       
        

* Server Side Code:

 protected void cmdUpload_Click(object sender, EventArgs e)
    {
        if (filUpload.PostedFile = null && filUpload.PostedFile.ContentLength > 0)
        {
            byte[ bData = new byte[filUpload.PostedFile.ContentLength;
            filUpload.PostedFile.InputStream.Read(bData, 0, filUpload.PostedFile.ContentLength);

            //Retrieve filename
            System.IO.FileInfo oInfo = new System.IO.FileInfo(filUpload.PostedFile.FileName);
           
        }
    }

 

Tags:

asp.net

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count: