开发者

Is Response.Write() working with Razor?

开发者 https://www.devze.com 2023-01-10 06:16 出处:网络
Is Response.Write() working with Razor? 开发者_JS百科I tried to use @Html.RenderAction but I\'m getting the error:

Is Response.Write() working with Razor?

开发者_JS百科

I tried to use @Html.RenderAction but I'm getting the error:

CS1502: The best overloaded method match for 
'Microsoft.WebPages.WebPageUltimateBase.Write(Microsoft.WebPages.Helpers.HelperResult)'   
has some invalid arguments


This is the correct syntax:

@{Html.RenderAction("Index", "Menu");}

Or just using Action:

@Html.Action("Index", "Menu")
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号