Just a question here. Lets say I have a model Model1 with the property say "IsAccessed". Now lets pass this model to a view using the View("Action1", model1). Now lets say user performs some operation in the View and then submits. Basically a Post happens
to an Action "Action1" and the same model1 is passed to the Post Action. Now if I had set "IsAccessed" as true in my get Action of "Action1" and if this property is not accessed in the view ... its getting reset to false. Is there any reason for the same?
manu_enc
Member
2 Points
5 Posts
posting data versus model data
Nov 24, 2010 05:36 PM|LINK
Hi,
Just a question here. Lets say I have a model Model1 with the property say "IsAccessed". Now lets pass this model to a view using the View("Action1", model1). Now lets say user performs some operation in the View and then submits. Basically a Post happens to an Action "Action1" and the same model1 is passed to the Post Action. Now if I had set "IsAccessed" as true in my get Action of "Action1" and if this property is not accessed in the view ... its getting reset to false. Is there any reason for the same?
ignatandrei
All-Star
135047 Points
21654 Posts
Moderator
MVP
Re: posting data versus model data
Nov 24, 2010 08:32 PM|LINK
please see http://forums.asp.net/t/1559541.aspx