Use the tabstrip and ifame components of Microsoft. Web. UI. webcontrols to switch pages.

Source: Internet
Author: User


Examples

Http://www.tvmenu.com

IfameCode

< IFRAME ID = "T_content" Frameborder = "0" Name = "Dob" Style = "Width: 100%; Height: 100%" Scrolling = "Auto" SRC = "" > </ IFRAME >

SRC is set to NULL:

Add JS at the end of the aspx File
< Script >

VaR tid = Tb_program.gettab (tb_program.selectedindex). getattribute ( " ID " ). Substr ( 2 ); // Obtains the value of the currently selected radio station.

VaR Tweek = Tb_week.selectedindex; // Returns the value of the current week.

Function tb_program.onselectedindexchange () // When the radio station is selected

{

VaR Tab = Tb_program.gettab (tb_program.selectedindex );

TID = Tab. getattribute ( " ID " );

TID = TID. substr ( 2 );

Dolocation ( 0 );

}

Function tb_week.onselectedindexchange () // When the week is selected

{

Tweek=Tb_week.selectedindex;

Dolocation (0);

}

// Enable IFRAME navigation

Function dolocation (first)

{

If (First =   0 ) // First time?

Document. All ( " T_content " ). SRC =   " Content. aspx? Tid = " + TID + " & Tweek = " + Tweek;

Else

Document. All ( " T_content " ). SRC =   " Content. aspx? D = 1 & tid = " + TID + " & Tweek = " + Tweek;



}

Dolocation ( 1 ); // Run at the first time



</ Script >

This speed is not exceeded, and less content is loaded for the first time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.