I'm new to asp.net mvc and I couldn't find the best way to do this:
I have a form with a dropdown list. In the controller, on populating the form, I set:
ViewBag.DDLCONTENT = .... (and take it from the database);
If I repopulate the form in the controller with ajax, ViewBag.DDLCONTENT will become empty. So exactly should I do this without having to call again the database?
I can post the full code if my question is not clear enough
Thank you