开发者

MVC3 is it possible to return a view with an achor tag

开发者 https://www.devze.com 2023-04-11 21:16 出处:网络
If I have a contr开发者_如何学运维oller action that returns a simple view return View(\"Index\");

If I have a contr开发者_如何学运维oller action that returns a simple view

return View("Index");

Is there some way I could return with the browser being sent to /#tab?


This should be done on the client before invoking the action that will return the view:

@Html.ActionLink("link text", "MyAction", "MyController", null, null, "tab", null, null)
0

精彩评论

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