Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8246123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:24:14+00:00 2026-06-07T22:24:14+00:00

I am encountering difficulties when attempting to use the ASP.NET File upload control. What

  • 0

I am encountering difficulties when attempting to use the ASP.NET File upload control.
What is happening is that when I call the file upload control from the code behind, I always get a FileUploadControl.HasFile = false.
I have carried out some research and tried different methods to no avail. The control is being used in the following scenario:
The control is contained in a div which is to be called as a popup dialog by means of JQuery. Together with the fileupload control there are two link buttons which will operate the mentioned control (Importing XML from file and manipulate).

Thanks.

Below is a sample of my code.

<asp:scriptmanager id="ScriptManager1" runat="server">
    </asp:scriptmanager>
<div style="text-align: center; margin-left: auto; margin-right: auto">
    <asp:fileupload id="FileUploadControl" runat="server" />
    <asp:updatepanel runat="server">
                <ContentTemplate>                    
                    &nbsp;
                    <asp:LinkButton ID="Append" runat="server" Text="Append" OnClick="Append_Click"></asp:LinkButton>
                    &nbsp;
                    <asp:LinkButton ID="Overwrite" runat="server" Text="Overwrite" OnClick="Overwrite_Click"></asp:LinkButton>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="Append" />
                    <asp:PostBackTrigger ControlID="Overwrite" />
                </Triggers>
            </asp:updatepanel>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:24:16+00:00Added an answer on June 7, 2026 at 10:24 pm

    You need to remove the UpdatePanel. You cannot upload a file on partial postback and if all you have in the UpdatePanel triggers the file upload it’s not needed:

    <div style="text-align: center; margin-left: auto; margin-right: auto">
        <asp:fileupload id="FileUploadControl" runat="server" /> 
            &nbsp;
            <asp:LinkButton ID="Append" runat="server" Text="Append" OnClick="Append_Click"></asp:LinkButton>
            &nbsp;
            <asp:LinkButton ID="Overwrite" runat="server" Text="Overwrite" OnClick="Overwrite_Click"></asp:LinkButton>
    </div>
    

    NOTE: General tip for UpdatePanel development. If you run into any weirdness that doesn’t make sense remove the UpdatePanel and test your code. UpdatePanel’s have lots of limitations depending on your page/controls complexity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm encountering the following error when attempting to (svn) import from within Xcode). Import
I am encountering an issue when attempting to remove an object from my Core
recently I have been encountering problems with exposing events from .NET to COM. I
I'm encountering a situation where it takes a long time for ASP.NET to generate
I am encountering a problem with passing data between pages that require facebook access.
I am encountering a very strange error with my project. I normally use the
I am encountering an odd issue whereby I can move items from one list
I´m encountering this problem trying to mock some objects that receive complex lambda expressions
I'm encountering differences in T-SQL with SQL2008 (vs. SQL2000) that are leading me to
Ive been encountering this problem since I last upgraded PhoneGap from 1.3.0 to 1.4.1,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.