相关疑难解决方法(0)

Razor actionlink自动生成?URL中的长度= 7?

我在下面的剃刀页面上有链接.

@Html.ActionLink("Create New Profile", "Create", "Profile", new { @class="toplink" })
Run Code Online (Sandbox Code Playgroud)

我看到下面的页面查看源

<a href="/admin/profile/create?length=7" class="toplink">Create New Profile</a>
Run Code Online (Sandbox Code Playgroud)

当我点击链接.URL如下所示.

http://localhost:54876/admin/profile/create?length=7
Run Code Online (Sandbox Code Playgroud)

我不想要?长度= 7.为什么这是自动生成的.

asp.net-mvc razor asp.net-mvc-3 asp.net-mvc-4 asp.net-mvc-5

55
推荐指数
2
解决办法
2万
查看次数