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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:19:22+00:00 2026-05-26T06:19:22+00:00

I have a model that I’m using to pass data from my view to

  • 0

I have a model that I’m using to pass data from my view to my controller but I have some unbound from textboxes and dropdownlists. How can I pass that unbound data from my view back to my controller using ViewData or ViewBag….or something. Thanks!

  • 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-26T06:19:23+00:00Added an answer on May 26, 2026 at 6:19 am

    Can you give an example? It looks as if you’re mixing up your terminology a bit. You don’t generally pass data from a view to a controller except via a POST/GET. I’m going to assume that’s what you meant. You can get any data into your controller’s action method via a parameter with the same name or using a FormCollection.

    public ActionResult SomeMethod(
                           string yourUnboundTextBoxName, 
                           FormCollection colleciton) { }
    

    In your view it might have something like:

    <div>
        <input type='text' name='yourUnboundTextBoxName' />
    </div>
    

    MVC will automatically take the value of yourUnboundTextBoxName and insert that value into the parameter of the same name. Or you can use the FormCollection and get the value from there. FormCollection["yourUnboundTextBoxName"]

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

Sidebar

Related Questions

I have a model that I'm trying to retrieve an array of data from,
I have a model that requires loading external data from an auxiliary source. A
I have model data that came from a MultipleChoiceField. I have figured out it
In my controller I have model operations that can return empty results. I've setup
I have a model that has a bone which has a translated offset from
I have a model that has a cellphone Cellphones are store using a particular
I have a model that has a delete view so you can have one
I have a model that looks like this (well not really but it has
I have a model that members will be able to update but their changes
I have a model that fetches all the games from a particular city. When

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.