What's the best way for storing record's ID on web page while editing in ASP.NET MVC ?

Posted by user137348 on Stack Overflow See other posts from Stack Overflow or by user137348
Published on 2010-03-08T10:06:30Z Indexed on 2010/03/08 10:21 UTC
Read the original article Hit count: 321

Filed under:
|

While a record is edited,how should be the ID stored ? I could have a textbox with enabled false, but I don't like this approach.

In ASP.NET I used to have a property which has saved the value in viewstate(Actually a hidden field + encrypted value).

The only solution I found Is to use a hidden field. Is it save enough ?

Are there any others options ?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about html