开发者

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

开发者 https://www.devze.com 2023-01-21 11:23 出处:网络
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.

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

精彩评论

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