开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜