Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

FileUpload control does not recognize having a selected file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Sokalski - 20 Dec 2007 02:33 GMT
I have a FileUpload control which is inside an UpdatePanel which is inside a
TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length
properties. However, after I select a file, the HasFile=False, and the
FileContent.Length=0. Why is this? Does it have something to do with the
TabPanel and UpdatePanel being AJAX? If so, what can I do to fix it? Is
there something else I could be doing wrong? Any help would be appreciated.
Thanks.
Signature

Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

PJ on Development - 20 Dec 2007 12:05 GMT
Hi, Nathan

So far, FileUpload control is incompatible with UpdatePanel.

I do have an upload control taht is compatible with the UpdatePanel.
Take a look at http://pjondevelopment.50webs.com/articles/asyncupload.html

Regards,

Paulo Santos
http://pjondevelopment.50webs.com

> I have a FileUpload control which is inside an UpdatePanel which is inside a
> TabPanel. In my code, I use the FileUpload's HasFile and FileContent.Length
[quoted text clipped - 6 lines]
> Nathan Sokalski
> njsokal...@hotmail.comhttp://www.nathansokalski.com/
Nathan Sokalski - 20 Dec 2007 14:33 GMT
I can accept that it does not work in UpdatePanel, so is this why it does
not work in the TabPanel either, even though I have commented out the
UpdatePanel? Thanks. (I appreciate your control, but because this is not for
personal use, I would prefer not to use third-party controls)

> Hi, Nathan
>
[quoted text clipped - 21 lines]
>> Nathan Sokalski
>> njsokal...@hotmail.comhttp://www.nathansokalski.com/
PJ on Development - 21 Dec 2007 11:39 GMT
Hi, Hathan

As you could see my control is free AND open-source.

Feel free to use it as you wish.

Regards,

Paulo Santos
http://pjondevelopment.50webs.com

> I can accept that it does not work in UpdatePanel, so is this why it does
> not work in the TabPanel either, even though I have commented out the
[quoted text clipped - 28 lines]
>
> - Show quoted text -

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.