I suggest you ...

Add a function to Model Binder……

Sometimes we usually want to encypt and decypt the values included in the hiddenfield,but we cannot do that directly——I want that Model Binder will automatically do this(e.g):

public ActionResult xxx(EntityModel em)
{
………………
return View(em); //When calling this, View will automatically encypt these values one by one,thus you can output them in hiddenfield……
}
And you can offer an overload function to decide which properties to be encypted……

When page renders, Model binder should accept these encypted values and "smart" enough to translate them to the original ones……

PS:I know I can do that manually, but if that could be enhanced as a function by MS——Would be better!

Thx anyway……

4 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Wei_DongWei_Dong shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base