JQuery: How to handle ASP.Net MVC 2 View objects in Ajax data? -


I want to submit an ASP.NET MVC 2 page via javascript / jquio because I have to create some arrays In the controller, I either see (if there are any errors) or return a URL (redirect) I

I can fix the URL, but I have no idea that returning an object How can handle

pre << >> code Code

Br> Jason Returns (see ("Editor" , New Administrator Edit Rollwheel Model (roles), JasonSeverest Behavior Alowweight);

// If it is okay, then return the new URL - Return Jason (Redirection Taoyankha ("Editor's Details"), Jason Arefest Behavior. Elove Gate);

}

The JavaScript looks like this:

  $. Ajax ({url: '/ admin / update /', data: {item: edited roll, item 2: $ ("#deletelist"). Sorted ('toArray')}, success: function (data) {window.location .href = data;}});  

If the URL looks like "/ controller / action", then it is not sure how to handle any object with a view

    "Itemprop =" text ">

    Usually if using Ajax you want to represent Jasonson of your model instead of the scene.

    In your case, I'm assuming That you get a string such as / controller / editing roll / 1 23


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -