HighTechTalks DotNet Forums  

FileUpload control does not recognize having a selected file

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss FileUpload control does not recognize having a selected file in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default FileUpload control does not recognize having a selected file - 12-19-2007 , 08:33 PM






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.
--
Nathan Sokalski
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/



Reply With Quote
  #2  
Old   
PJ on Development
 
Posts: n/a

Default Re: FileUpload control does not recognize having a selected file - 12-20-2007 , 06:05 AM






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/ar...yncupload.html

Regards,

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

On Dec 20, 12:33 am, "Nathan Sokalski" <njsokal... (AT) hotmail (DOT) com> wrote:
Quote:
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.
--
Nathan Sokalski
njsokal... (AT) hotmail (DOT) comhttp://www.nathansokalski.com/


Reply With Quote
  #3  
Old   
Nathan Sokalski
 
Posts: n/a

Default Re: FileUpload control does not recognize having a selected file - 12-20-2007 , 08:33 AM



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)

"PJ on Development" <pjondevelopment (AT) gmail (DOT) com> wrote

Quote:
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/ar...yncupload.html

Regards,

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

On Dec 20, 12:33 am, "Nathan Sokalski" <njsokal... (AT) hotmail (DOT) com> wrote:
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.
--
Nathan Sokalski
njsokal... (AT) hotmail (DOT) comhttp://www.nathansokalski.com/



Reply With Quote
  #4  
Old   
PJ on Development
 
Posts: n/a

Default Re: FileUpload control does not recognize having a selected file - 12-21-2007 , 05:39 AM



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

On Dec 20, 12:33*pm, "Nathan Sokalski" <njsokal... (AT) hotmail (DOT) com> wrote:
Quote:
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)

"PJ on Development" <pjondevelopm... (AT) gmail (DOT) com> wrote in messagenews:1225b55e-976d-44c4-b0dc-d2d0c57452fb (AT) r29g2000hsg (DOT) googlegroups.com...



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 athttp://pjondevelopment.50webs.com/articles/asyncupload.html

Regards,

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

On Dec 20, 12:33 am, "Nathan Sokalski" <njsokal... (AT) hotmail (DOT) com> wrote:
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.
--
Nathan Sokalski
njsokal... (AT) hotmail (DOT) comhttp://www.nathansokalski.com/- Hide quoted text -

- Show quoted text -


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.