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. Advertisements

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. =?Utf-8?B?QnJpYW4gRWR3YXJkcw==?=

    Deploying ASP.NET AJAX-Enabled Web site to host without AJAX insta

    =?Utf-8?B?QnJpYW4gRWR3YXJkcw==?=, Feb 20, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    839
    Patrick
    Feb 21, 2007
  2. minnie
    Replies:
    1
    Views:
    1,041
    Andrew Thompson
    Dec 13, 2006
  3. mark4asp
    Replies:
    1
    Views:
    1,403
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Mar 24, 2007
  4. Tony K
    Replies:
    2
    Views:
    1,467
    Tony K
    May 4, 2007
  5. rmn190
    Replies:
    2
    Views:
    2,933
    Arne Vajhøj
    Jan 10, 2008
  6. Paulo
    Replies:
    3
    Views:
    703
    Peter Bromberg [C# MVP]
    Dec 4, 2008
  7. p3ktiff

    ASP.NET MVC & Ajax question

    p3ktiff, Mar 12, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    462
    bruce barker
    Mar 13, 2009
  8. Crazy Cat
    Replies:
    1
    Views:
    920
    schepp
    Sep 3, 2009
Loading...