开发者

ASP.net Button on Postback gets a DNS error in IE

开发者 https://www.devze.com 2022-12-11 12:20 出处:网络
I have a button on an ASP.net page. <asp:Button Text=\"<%$Resources: WebResources, Export %>\" ID=\"BtnExport\" runat=\"server\" OnClick=\"BtnExport_Click\"/>

I have a button on an ASP.net page.

<asp:Button Text="<%$Resources: WebResources, Export %>" ID="BtnExport" runat="server" OnClick="BtnExport_Click"/>

The issue is that when I try to export more t开发者_StackOverflowhan 130 items the page will not postback and go straight to the dns error page. The code works fine in firefox, safari, and chrome. The issue occurs in IE (only tested in 8).

I tried debugging. I added a breakpoint at the start of the method and start of the PageLoad method and the error happened before it got to those points.

Any ideas?


So the issue seems to be I was passing too many characters in the Request URL. IE only supports approximately 2048 characters in a URL. Safari, Chrome and Firefox support at least 80,000. Way to go IE.


Turn off the "Show Friendly HTTP Error Messages" in Internet Explorer. Tools -> Options -> Advanced.

What is the error you see in IE with this disabled?

0

精彩评论

暂无评论...
验证码 换一张
取 消