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 4322214
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:50:42+00:00 2026-05-21T08:50:42+00:00

Good day, I have a ASP.net MVC app that needs to upload files to

  • 0

Good day,

I have a ASP.net MVC app that needs to upload files to Amazon S3 with progress. I found a neat control called Flajaxian that does the job pretty well. The issue is that now I want to insert a row of data into a DB that keeps track of the uploads. If you look at the code below the control has a FileUploader1_ConfirmUpload event that fires after the upload has completed. Url.Action(“Upload”, “TracksController”) does not do what I want it to, which is fire the Upload Action in the TrackController Controller. This is the first time I’ve worked with MVC so I’m hoping there is a simple solution.

I originally had a submit button to perform the upload in code like this <div class="submitBtnDiv"><input type="submit" value="Submit" class="submitBtn" id="trackAdd" /></div>. but now the upload is asynchronous so i want to do the same postback

Thank you to everyone that takes the time to read through this, and even more to those that try to solve it.

 <div class="contentsAcc"><form id="form2" runat="server" style="width:400px">
                <script runat="server">
                    private void FileUploader1_FileNameDetermining(object sender, FileNameDeterminingEventArgs e)
                    {
                        e.FileName = SessionWrapper.PersonId.ToString() + "_" + e.FileName;
                    }
                </script>
                <script runat="server">
                    private void FileUploader1_ConfirmUpload(object sender, ConfirmUploadEventArgs e)
                    {
                        Url.Action("Upload", "TracksController");                            
                    }
                </script>
                    <fjx:FileUploader ID="FileUploader1" runat="server">
                        <Adapters>
                            <fjx:DirectAmazonUploader   OnFileNameDetermining="FileUploader1_FileNameDetermining" OnConfirmUpload="FileUploader1_ConfirmUpload"
                                AccessKey="WebConfig:AmazonAccessKey" 
                                SecretKey="WebConfig:AmazonSecretKey"
                                BucketName="tracksupload" />
                        </Adapters>
                    </fjx:FileUploader>

        </form></div>

Ok, so I’ve tried to change my approach a bit from the above yesterday. Instead of trying to fire the Action of the TracksController i want to move that Action code into the Confirm_Upload event. But now I still need to get the values of the textboxes. Because MVC doesnt remember state it is proving difficult. Here are the textBoxes. they are on the same page as the code above.

 <label for="BandName">Artist</label> 
       <%=Html.TextBox("Artists") %><%:Html.ValidationMessage("Artist","*")%>
        <div class="clearfix">
        </div>
        <label for="SongName">Song Title
        </label>
          <%=Html.TextBox("SongName") %><%:Html.ValidationMessage("SongName","*")%>
        <div class="clearfix">
        </div>

Is it possible to pull the values of the textbox and have it sent to the Confirm_Upload event which happens server side? If not with server code then maybe JavaScript client side?

The upload control im using is the only one that does excatly what I want, but it is web forms, the site is MVC. So I have a web forms control on a mvc page. I want to use MVC textbox values and pass it to the web forms control for processing.

  • 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-21T08:50:42+00:00Added an answer on May 21, 2026 at 8:50 am

    Url.Action simply returns a URI. Are you trying to redirect?

    Sometimes WebForms events work in MVC so I was seeing if it was as simple as you needing to redirect.


    Your main problem is you are trying to use WebForms code in what looks like a MVC page. This is mostly incompatible and you’ll need to wireup javascript yourself or use another of the many javascript file upload controls directly in your view.

    I can’t recommend anything because I’m not familiar with S3 uploading. Maybe another SO user can answer better.

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

Sidebar

Related Questions

Good day, I have created an object that will manage data access. My app
Good day, everyone. I found strange behavior within ASP.NET engine when it handles non-existent
Good Day, I have created an asp.net web service on my local machine, and
Good day, I have found a strange quirk in Vim that I can't explain
I have a ASP.NET MVC page of Events of a specific day. I'm also
Good day! I have a task to rewrite site from classic asp to .net
Good day. I have an app that has one main activity which holds 3
Good Day, We have migrated our web application to ASP.NET 2.0 from ASP.NET 1.1.
Good day! I'm using ASP.NET MVC 2 and T4MVC and it seems some code
Good day I have a custom TextBox that has a IndicatorTextBox.ui.xml file as well

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.