Solved

How do I save value from dropdownlist to local variable of my customViewModel in MVC 3

Posted on 2011-03-10
1
599 Views
Last Modified: 2012-05-11
I don't know how i should write  ViewModel exactly. In same view I need to do read, update and create. In first, I thought it won't be a big deal, but now, it seems it is. (asp.net MVC 3)

For example:

I have: object1, object2 and object3

object1 is just to be read in [HttpGet]
object2 is created in [httpPost]
object3 is updated in [httpPost]

For update I don't have anything to bind to model, so I need a local variable to make this work.
How do I implement helper variable just for saving what user selected from dropdown so I can save object2 and object3 correctly?

Thanks
0
Comment
Question by:vjerch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 35516155
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Suggested Courses

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question