PC Review


Reply
Thread Tools Rate Thread

asp.net mvc ajax post

 
 
rodchar
Guest
Posts: n/a
 
      1st Oct 2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect to an error page from server side after an errorduring an AJAX post? JimLad Microsoft ASP .NET 3 28th Jan 2010 07:30 PM
AJAX POST on Socket Stephen Brown Microsoft C# .NET 2 14th Apr 2009 11:26 PM
Ajax not working - still doing post-backs JFord Microsoft ASP .NET 2 14th Dec 2008 11:08 AM
AJAX update panel causes full page post back =?Utf-8?B?TGlhbQ==?= Microsoft ASP .NET 0 15th Oct 2007 09:40 PM
Page level variables reset during Ajax post back radix Microsoft ASP .NET 3 23rd Jul 2007 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 AM.