Javascript 为window.open传递长查询字符串
我需要你的帮助 我正在制作一个带有新窗口的弹出窗口,其中包含如下句子Javascript 为window.open传递长查询字符串,javascript,asp.net,Javascript,Asp.net,我需要你的帮助 我正在制作一个带有新窗口的弹出窗口,其中包含如下句子 <p>ABCD EFG HIJKLMNOP</p> <br /> <p>QR S T U V?? WS YNG</p> so on... ASP.NET核心控制器 public IActionResult Popup(string strContents) { // some process for manupulating strContents
<p>ABCD EFG HIJKLMNOP</p>
<br />
<p>QR S T U V?? WS YNG</p>
so on...
ASP.NET核心控制器
public IActionResult Popup(string strContents)
{
// some process for manupulating strContents
return View();
}
但是,当我向控制器操作发送太长的字符串时,页面会显示错误
HTTP Error 404.15 - Not Found
The request filtering module is configured to deny a request where the query string is too long.
我怎么办
是否还有其他方法来发送长查询字符串,并为打开窗口接收它?
,实际上,当我们提出请求时,将其视为get请求,并且在请求字符数时存在限制,因为它给出了这种错误。 所以,不要在查询字符串中传递该值,而是尝试将该值存储在父页面的隐藏字段中,并从父页面打开的页面访问该值HTTP Error 404.15 - Not Found
The request filtering module is configured to deny a request where the query string is too long.