【问题标题】:How can i hide the query string from the url using asp. Net mvc如何使用 asp 隐藏 url 中的查询字符串。网络mvc
【发布时间】:2020-07-25 16:53:33
【问题描述】:

我想从 url 中隐藏查询字符串,例如

http://example.com/productlist/id=2/pageno/3

我的网址应该是这样的

http://example.com/productlist

【问题讨论】:

  • 不要使用查询字符串,而是使用 HTTP post 传递您的数据
  • 你能举个例子,因为我是开发新手

标签: c# asp.net-mvc query-string asp.net-mvc-5.1


【解决方案1】:

您必须通过 HTTP POST 传递数据。并且不要使用 GET 方法。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-23
    • 1970-01-01
    • 2013-02-16
    • 2023-03-05
    • 1970-01-01
    • 2011-08-26
    相关资源
    最近更新 更多