Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道查询字符串中的前一页参数,我想在下一页发送。
我正在这样做但不工作:
<a href="w4_wchange_states_2.aspx?St=AL" + '<% HttpContext.Current.Request.RawUrl; %>' id="A_AL">Alabama</a>
有 40 个标签重定向到同一页面。
请帮助我如何做到这一点。
用于完整HttpContext.Current.Request.Url.ToString()的网址。
HttpContext.Current.Request.Url.ToString()
或者,只是查询字符串段:
<a href="w4_wchange_states_2.aspx?St=AL&<% Request.Url.Query.Substring(1, Request.Url.Query.Length - 1); %>" id="A_AL">Alabama</a>