开发者

Create a link to a Web Forms page and send some variables to it

I have a Web Forms page in my ASP.NET MVC application. I need to create a link to it, but ActionLink needs a controller/acti开发者_JAVA百科on pair, which the page doesn't have.

How do I create a link to send variables (a string and an int) to a .aspx page?


There's nothing preventing you from constructing a 'normal' link with plain old HTML:

`<a href="page.aspx?id=<%:Model.Id %>&amp;query=<%:Model.query%>">my link</a>`
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜