Hi all,

am using Html FileUpload control and i have used the applied the css by following the intructions provided in following link to change the appearance of the browse button.


this functions well when i use mouse clicks to select file an update the files to some location on server.

but when i bring the focus on to the control and press enter key Or space bar file browser gets opened but after selected the file; the selected file is not getting loaded in to the fileUpload control to save the file at some location.

if (UploadFileName.PostedFile != null)
string strfilename = UploadFileName.PostedFile.FileName;
string filePathOnserver = Server.MapPath(".") + "\\CustomReports\\" + reportName;
string path = HttpContext.Current.Server.MapPath(".");

am not getting the "UploadFileName.PostedFile.FileName" and getting the file size=0 when i select the file(when the file browser is opened by keydown event).

it is functioning fine when i make a selection by opening file browser by mouse click event.

Is the any difference in opening file Browser by Click event and KeydownEvent?