如何在Webmatrix中使用Razor在两个页面之间传递值?
我是 Razor 和 Webmatrix 的新手。我尝试使用 POST 方法将值从一个页面传递到另一个页面,但我无法传递值。我已经用谷歌搜索过但没有得到任何解决方案。那么有人可以给我指导吗?
I am new to Razor and Webmatrix.I was trying to pass values using POST method from one page to another page but i am not able pass values. I have googled on it but didn't get any solutions. So can any one provide me the guidance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你有什么困难?在一个页面上创建一个
并在另一页上从请求中读取值:
Request["bar"]
:What are you having difficulties with? On one page you create a
<form>
:and on the other page you read values from the request:
Request["bar"]
:如果两个页面都在同一个项目中,则典型的方法是:
A typical way to do it if both pages are in the same project: