When writing an ASP page, open the page with ie10 and click the next page. There is no problem when you click the next page in IE8 or ie9.
My page is a page flip control customized by linkbutton. The ASP code is as follows:
<Pagerstyle forecolor = "blue" backcolor = "lightblue" horizontalalign = "center"/> <pagertemplate> <Table width = "100%"> <tr class = "tdbg" align =" center "> <TD style =" height: 39px; text-align: Center "class =" paginator "> total <% = This. pagecount %> page number of data entries: <asp: Label id = "labelcurrentpage" runat = "server" text = "<% # (gridview) container. namingcontainer ). pageindex + 1%> "> </ASP: Label>/<asp: Label id =" labelpagecount" Runat = "server" text = "<% # (gridview) container. namingcontainer ). pagecount %> "> </ASP: Label> 15 entries per page <asp: linkbutton id = "linkbuttonfirstpage" runat = "server" commandargument = "first" commandname = "page" enabled = '<% # (gridview) container. namingcontainer ). pageindex! = 0%> '> homepage </ASP: linkbutton> <asp: linkbutton id = "linkbuttonpreviouspage" runat = "server" commandargument = "Prev" commandname = "page" enabled = '<% # (gridview) container. namingcontainer ). pageindex! = 0%> '> previous page </ASP: linkbutton> <asp: linkbutton id = "linkbuttonnextpage" runat = "server" commandargument = "Next" commandname = "page" enabled = '<% # (gridview) container. namingcontainer ). pageindex! = (Gridview) container. namingcontainer ). pagecount-1%> '> next page </ASP: linkbutton> <asp: linkbutton id = "linkbuttonlastpage" runat = "server" commandargument = "last" commandname = "page" enabled = '<% # (gridview) container. namingcontainer ). pageindex! = (Gridview) container. namingcontainer ). pagecount-1%> '> last page </ASP: linkbutton> to the <asp: textbox id = "txtnewpageindex" runat = "server" width = "20px" text = '<% # (gridview) container. parent. parent ). pageindex + 1%> '/> page <asp: linkbutton id = "btngo" runat = "server" causesvalidation = "false" commandargument = "-1" commandname = "page" text = "go"/> </TD> </ tr> </table> </pagertemplate>
Later, compare the source code on the IE8, ie9, and ie10 pages. The source code in ie10 does not generate the JavaScript code of _ dopostback. As a result, the message cannot be sent back and the click does not respond. The source code in IE8 and ie9 contains the following code:
<script type="text/javascript">//<![CDATA[var theForm = document.forms['aspnetForm'];if (!theForm) { theForm = document.aspnetForm;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]></script>
Later I came to a forum and encountered the same problem as me. His solution was to change the IE 10 browser to the compatible mode. Then I tried to change it to the compatible mode, the javascript code that generates _ dopostback is generated in the source code.
Forum address: http://bbs.csdn.net/topics/390374229? Page = 1 # post-393747839
Reference: http://www.cnblogs.com/weapon/p/3150584.html
The solution for this article is to add the website to the compatibility mode in "Tools.
There are also patches that can fundamentally solve this problem: http://www.techweb.com.cn/news/2011-09-07/1090483.shtml
Reference: http://blogs.msdn.com/ B /scott_hanselman/archive/2011/10/28/asp-net-ie10-dopostback-javascript-ff5.aspx