asp.net mvc ajax post

R

rodchar

Hey All,

I have a simple page that i'm posting via ajax. Once the controller receives
the model I noticed that my SelectLists that I populated in the Model are now
Null.

Now once the post is complete I just want to stay on the same page I was on.
When I tell the controller to return View it errors out because the
SelectLists in the model are as I said Null.

Is there a way to tell the controller to stay on the same page? How I'm
solving it now is regetting a new model. Is there a better approach then the
way I'm doing it?

please advise,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top