Mvc html.serialize to store the model in view

Can someone tell me what happened to the Html.Serialize function mentioned in the url below.

It is not recognized when I try to use it in an MVC2 web application in Visual Studio 2010.

http://weblogs.asp.net/shijuvarghese/archive/2010/03/06/persisting-model-state-in-asp-net-mvc-using-html-serialize.aspx

EDIT. I am using Visual Studio 2010, which comes with built-in mvc2, when I try to use Html.serialize when viewing or partial viewing, which it does not appear in intellisense. Am I missing a link or something else?

+3
source share
3 answers

. , html. , Views, PartialViews.

:

<%= Html.Serialize("wizardData", Model)%>

? , , .

, , . - , . , .

, , , , . , , . , .

+1

, ! .

ASP.NET 2 Futures DLL, Mvc DLL.

SerializationExtensions.

0

This is in the MVCFutures assembly, not in the MVC framework. You will need to add the package via nuget or manual download, and then add the use / import statement to Microsoft.Web.Mvc before you can use it in your view.

0
source

Source: https://habr.com/ru/post/1774170/


All Articles