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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:53:18+00:00 2026-06-12T23:53:18+00:00

I am passing an object to an action method and that action method displays

  • 0

I am passing an object to an action method and that action method displays the view but it has all the proerties in the querystring and I do not want that (I have a long json string that cannot pass in url). How can I pass in a model object and not have it in the querystring? Also when you have a strong type view, Where does the object values for the Model store? Thanks for any help.

      //This works fine when I am calling /controller/uploader
        public ActionResult Uploader(Model model)
        {
        //logic
        return View(model);
        }

        //But when I am on another method and want to call uploader it does pass the object but puts //all the data in a querystring
        public void DoSomething(string val, string anotherval){
        Model model = new Model();
        Uploader(model);//This passes the object but when uploader page shows it has all the    //model object properties in querystring and I do not want that.

 return RedirectToAction("Uploader",model);//or this does the same thing
    }
  • 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-12T23:53:18+00:00Added an answer on June 12, 2026 at 11:53 pm

    Try using the POST method on the html form:

    <form action="/uploader" method="POST">
        <!-- maybe some input elements? -->
        <input type="submit" />
    </form>
    

    This will transfer the data as Form Encoded within the request body and keep the data out of the query string.

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

Sidebar

Related Questions

I am passing a List<Listing> object to another action method and making that method
I have a get method passing in an object of type Store to the
When passing a RouteValueDicitonary or anonymous object into a @Url.Action method (or any of
I know that when passing an object by value to a function, the move
I am passing a JSON object and an array to a Javascript function, but
I am passing one parameter/object to the function RefValTest(object oIn) by the value but
My ViewModel class has a property that contains a ShareClass object. ShareClass has a
I've got a method that receives an Object[] and then performs actions on that
I'm trying to do this: def assert_record_not_found(method, object, action, params) begin method action, params
I have a method to generate fully qualified URLs that I wrote which I

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.