The previous article uses the Easyui tab tag, switching problems, using the session to save the currently selected page, and then the overall page refresh and then switch to the last saved page number. Then using UpdatePanel, this problem will be solved very well.
http://blog.csdn.net/yysyangyangyangshan/article/details/38578403
The reference DLL has been said earlier. Here's a look at how to improve the use of tab in the page.
Front Code:
<%@ Register assembly= "System.Web.Extensions, version=1.0.61025.0, Culture=neutral, publickeytoken= 31bf3856ad364e35 "namespace=" System.Web.UI "tagprefix=" ASP "%><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">Background:
public partial class _default:system.web.ui.page { protected void Page_Load (object sender, EventArgs e) { c3/>} protected void Tab1_button_click (object sender, EventArgs e) { } protected void Tab2_button_ Click (object sender, EventArgs e) { } }
The Configuration tab is still included in Web. config:
The effect is as follows:
After such a button event, the page will not be refreshed as a whole, and it resolves the problem that the tab automatically jumps to the default page.
Code Download: http://download.csdn.net/detail/yysyangyangyangshan/7991493
JavaScript improved: 006:asp.net uses Easyui tabs tags UpdatePanel