asp.net mvc ajax post

Discussion in 'ASP .Net' started by rodchar, Oct 1, 2009.

  1. rodchar

    rodchar Guest

    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
     
    rodchar, Oct 1, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. minnie
    Replies:
    1
    Views:
    758
    Andrew Thompson
    Dec 13, 2006
  2. rmn190
    Replies:
    2
    Views:
    2,466
    Arne Vajhøj
    Jan 10, 2008
  3. Paulo
    Replies:
    3
    Views:
    508
    Peter Bromberg [C# MVP]
    Dec 4, 2008
  4. p3ktiff

    ASP.NET MVC & Ajax question

    p3ktiff, Mar 12, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    386
    bruce barker
    Mar 13, 2009
  5. Crazy Cat
    Replies:
    1
    Views:
    720
    schepp
    Sep 3, 2009
Loading...

Share This Page