This is my first Mvc project so my apologies if i am asking something dumb.
I have a DropDownList
that sets the kind of item. For each kind there are a few fields that need to change according to the selected type.
How can i know if the post back was fired from the drop down list?
At the controller i need to know if the method was called because the DropDownList
changed, and in that case i need to change the dependent fields, or, if the user press save and i have to capture and store all data.
The best approach i found so far is to send an parameter on the post-back fired from the DropDownList
. Still i need to clear the parameter after the post back and i am stuck there.
This looks a bit more complicated that it should for something i think is common, so probably Mvc should provide a better approach but i can't find one.