We often browse the classification information in the homepage, in the C / S mode, often use the TAB paging method, then put different information in different TAB pages, then click the tab to view the different pages. content. We can use the web version of IFRAME to implement a master WebForm1, put two buttons to simulate the page sign (you can also create more beautiful tabs in the future), then build two sub-Form, WebForm2 WebForm3, when the button is pressed, switch the IFRAME's SRC property to display different sub-pages. The specific code is as follows:
Webform1.aspx
<% @ Page language = "c #" codebehind = "Webform1.aspx.cs" autoeventwireup = "false" inherits = "iframetest.webform1"%>