views:

10

answers:

0

Does anyone have suggestions for best practices using "review" pages and dropdown items?

(What I mean by "review" page is, they enter data and press submit, that goes to a "pass-through" action that renders a summary of what they entered and if they like it, they press submit and it posts to an action that takes it and stuff it.)

For example, I have a data entry page that has a drop down of product categories, the data value is an integer, but the display is a descriptive string. So the data entry page is straight forward enough, but the DropDownFor references an int property of the viewmodel. On the "review" page I need to translate that back to a friendly string.

I'm looking for the most 'elegant' way to do that.

I think I've discovered the 'wrong' way to do it, make an HtmlHelper that looks the id up in the DB and comes back with the friendly string.