如何通过在查询字符串'#'字符串

2023-09-04 00:21:34 作者:最美不过初遇见

我想通过'#'像查询字符串?page.aspx?someParam = 1234#5

I want to pass '#' to the query string like ?page.aspx?someParam=1234#5.

推荐答案

请使用 Server.UrlEn code 在你的查询字符串,将解析'#'为您

Please use Server.UrlEncode on your querystring that will parse the '#' for you