How to create a pop-up window in asp.net mvc?

前端 未结 4 745
日久生厌
日久生厌 2021-02-05 12:09

No javascript/AJAX to be used.

when clicked on the hyperlink, it should open a new browser window.

4条回答
  •  攒了一身酷
    2021-02-05 12:42

    If you're not using javascript, you need to use the target="_blank". But to do it in a cleaner mvc fashion, do:

    <%= Html.ActionLink("Click me", "ActionName", null, new {target="_blank"}) %>
    

提交回复
热议问题