|
-
Problem with Keydown on FileUpload control
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.
http://www.dreamincode.net/forums/showtopic15621.htm
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(".");
UploadFileName.PostedFile.SaveAs(filePathOnserver);
}
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?
Similar Threads
-
By davidpopovich in forum VB Classic
Replies: 6
Last Post: 10-30-2007, 02:37 PM
-
By kiran.mate in forum VB Classic
Replies: 8
Last Post: 10-30-2007, 01:59 PM
-
By Vidhi in forum VB Classic
Replies: 2
Last Post: 06-03-2006, 12:30 AM
-
By Sinni in forum VB Classic
Replies: 1
Last Post: 03-06-2003, 04:50 PM
-
By Kamal in forum VB Classic
Replies: 0
Last Post: 06-19-2000, 07:42 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks