문제

If i had the below in the web.config file, and in the code behind I was using Request.QueryString("category") would this still return the string or just return and empty string.

  <rewriter>
    <rewrite url="~/products/books.aspx?category=books" to="~/products.books.aspx" />
  </rewriter>
도움이 되었습니까?

해결책

If you change the URL in the web.config file the the query string can not be used. so adding the value into a Session["id"] as an example will allow you to pass the values through, where ihave hav id u can change to a more meaninfful name.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top