This question is locked. New answers and comments are not allowed.
I have a MVC 3 TabStrip with with 5 tabs. Each tab has it's content loaded via "LoadContentFrom", which loads a partial view for the contents of each tab.
This is all working so far.
The 1st tab is called "MyProfile" and I have placed an input (button) control at the bottom of the 1st tab's partial, called "Save".
I already have a HttpGet MyProfile action method that loads the partial in the tab, I also have defined a HttpPost MyProfile method to handle the "Save" logic.
My question is, what do I return from that action method (HttpPost)? The HttpGet MyProfile action method returns the following:
This is all working so far.
The 1st tab is called "MyProfile" and I have placed an input (button) control at the bottom of the 1st tab's partial, called "Save".
I already have a HttpGet MyProfile action method that loads the partial in the tab, I also have defined a HttpPost MyProfile method to handle the "Save" logic.
My question is, what do I return from that action method (HttpPost)? The HttpGet MyProfile action method returns the following:
I can't have that same return in my HttpPost method, doing so will relust in only the partial being returned and not the page. Any help will be greatly appreciated. Basically, I am looking at leveraging all 5 tabs to update via ajax/client code and display a message.Return PartialView("~/Areas/MyAccount/Views/Shared/Partials/MyAccount/_MyProfile.vbhtml", viewModel)