FileUpload.File Name property - Gets the name of a file on a client to upload using the FileUpload control.
So in your case, You cannot use this property for initialize new instance of FileInfo class.
Try this code, I think it would be work properly:
Code:
protected void Button1_Click1(object sender, EventArgs e)
{
if(FileUpload1.HasFile)
{
// get file name without
Leave a comment: