473,793 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileUpload control does not recognize having a selected file

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.Len gth
properties. However, after I select a file, the HasFile=False, and the
FileContent.Len gth=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
nj********@hotm ail.com
http://www.nathansokalski.com/
Dec 20 '07 #1
3 8668
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...@hot mail.comwrote:
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.Len gth
properties. However, after I select a file, the HasFile=False, and the
FileContent.Len gth=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...@hotm ail.comhttp://www.nathansokal ski.com/
Dec 20 '07 #2
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" <pj************ *@gmail.comwrot e in message
news:12******** *************** ***********@r29 g2000hsg.google groups.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 at http://pjondevelopment.50webs.com/ar...yncupload.html

Regards,

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

On Dec 20, 12:33 am, "Nathan Sokalski" <njsokal...@hot mail.comwrote:
>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.Le ngth
properties. However, after I select a file, the HasFile=False, and the
FileContent.Le ngth=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...@hot mail.comhttp://www.nathansokal ski.com/
Dec 20 '07 #3
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...@hot mail.comwrote:
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.. .@gmail.comwrot e in messagenews:12* *************** *************** ***@r29g2000hsg .googlegroups.c om...
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.htm l
Regards,
Paulo Santos
http://pjondevelopment.50webs.com
On Dec 20, 12:33 am, "Nathan Sokalski" <njsokal...@hot mail.comwrote:
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.Len gth
properties. However, after I select a file, the HasFile=False, and the
FileContent.Len gth=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...@hotm ail.comhttp://www.nathansokal ski.com/- Hide quoted text -

- Show quoted text -
Dec 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1847
by: Uncle Ben | last post by:
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that, I mean is it reliable enough to accept 2-gigabyte file uploads per upload session? Also, is it possible or easy to implement an upload progress bar using this FileUpload control? Thanks.
3
1454
by: Seok Bee | last post by:
Dear Experts, May I ask, how can I remain the selected file that has been chosen through the Browse button in the Fileupload control in asp.net after a postback? Current, when the postback is true, the value/selected file in the fileupload is being initialized. Please help. Many thanks in advance.
1
3268
by: Harinath | last post by:
Hi All, I am working on a portal using .net2.0. In one of my page, i have FileUpload control. I am doing some server side validation for form fields in general. if there is any validation missing control comes back to the user. All other fields in the screens are retaining their values, but the
3
5177
by: rn5a | last post by:
The ASPX FileUpload control displays a TextBox along with a 'Browse...' Button. Setting the different properties of this control just reflects the changes in the TextBox but not the Button. For e.g. if the BackColor of a FileUpload control is set to blue, then only the TextBox color changes to blue but the BackColor of the Button doesn't change to blue. Or if the Font-Size of a FileUpload control is set to 15pt, then only the size of the...
1
1975
by: Nathan Sokalski | last post by:
I have an ASP.NET 2.0 webform which includes both a FileUpload contol and a Calendar control. When the user selects a new data with the Calendar control, the FileUpload control is reset (there is no longer a file selected if one was previously selected). I am assuming this is because the Calendar control causes a postback when a date is selected. Does anyone know of a way to prevent this from happening? Thanks. -- Nathan Sokalski...
5
12085
by: =?Utf-8?B?QmVydA==?= | last post by:
Hi How can you set the filename property in the asp:fileupload control? How can you persist the value of the chosen filename between postbacks? thanks B
4
2533
by: ravitunk | last post by:
hello...i have a fileupload control on my page and if i browse to a file(i.e.,now the fileupload control's property 'hasfile' is 'true') and then if i post back the page for any validations, the fileupload control is getting cleared,i.e., now the user again has to browse to the same specific file.Please suggest me any help so that the selected(browse) file do not vanish.I will be very thankful if any solution for this.
2
6016
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a gridview with 2 columns. One column is a BoundColumn to a part number (string). One column is an ItemTemplate with a FileUpload control. There can be multiple rows (i.e. part numbers) in the gridview. The user attaches a file for each part number / row. The user clicks a button after attaching all the needed files.
2
1049
by: miladhatam | last post by:
hi i want make a page that users can upload their picture but my problem : how can i dynamically add this control cos i want that they can upload every pic they have and like gmail if you browse a file in page automaticaly add a fileupload control in below of last control can you help me ? thanks
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10161
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6777
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.