ASP.NET MVC - Trouble passing model in Html.ActionLink routeValues

后端 未结 6 1466
北恋
北恋 2020-12-09 19:25

My View looks like this:

<%@ Control Language=\"C#\" 
    Inherits=\"System.Web.Mvc.ViewUserControl

        
6条回答
  •  不知归路
    2020-12-09 20:01

    Jeff,

    Maybe you could create a View class that has the properties SearchDataTypeModel and sortby and you pass it to the view. When you click the actionlink pass it just the Model.SearchDataTypeModel. HTH

提交回复
热议问题