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

  • Home
  • SEARCH
  • 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 6063995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:13:54+00:00 2026-05-23T09:13:54+00:00

I have a asp.net(c#) web application in that i am using Tabbed interface to

  • 0

I have a asp.net(c#) web application in that i am using Tabbed interface to show the forms.In Tabbed interface there are 4 tabs are there in 4th tab i have file upload control,when i try to upload a file it doesn’t take the file it always show the null value .How can i upload the file in Tabbed interface please help me.

<cc1:TabPanel runat="server" HeaderText="Documents" ID="TabPanel4">
    <triggers>
        <asp:PostBackTrigger ControlID="SyncButton" />
    </triggers>
    <ContentTemplate>
        <asp:Button ID="SyncButton" runat="server" Text="Test" />
        <table>
            <tr>
                <td>Documnets</td>
            </tr>
            <tr>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" /><br />
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnfupload" runat="server" 
                        CausesValidation="false" Text="Upload File"
                        OnClick="btnfupload_Click" />
                </td>
                <td>
                    <asp:Label ID="lblstatus" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</cc1:TabPanel>

Code Behind :

           protected void btnfupload_Click(object sender, EventArgs e)
    {

            try
            {
                if (FileUpload1.HasFile)
                {
                    if (!Directory.Exists(Server.MapPath("Documents")))
                    {
                        Directory.CreateDirectory(MapPath("Documents"));

                    }
                    string docment = FileUpload1.PostedFile.FileName;
                    string path = System.IO.Path.GetFileName(docment);
                    FileUpload1.PostedFile.SaveAs(Server.MapPath("Documents/") + path);

                }
            }
            catch
            {

            }
        }
    }
  • 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-05-23T09:13:54+00:00Added an answer on May 23, 2026 at 9:13 am

    Use AsyncFileUpload:

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

Sidebar

Related Questions

I have an ASP.NET web application that is using forms authentication. Everything is configured
We have created a web application, using ASP.NET, that allows users to upload documents
I have an asp.net web application that is using a MembershipProvider and RolesProvider that
We have an ASP.NET web forms application that is probably vulnerable to Cross-site request
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
I have an ASP.net web service that I'm using for a web application which
I have an ASP.NET web forms application that pulls email from an IMAP account.
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on
I have a really simple ASP.NET web application and a web setup project that

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.