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 %>&query=<%:Model.query%>">my link</a>`
精彩评论