Specific Use of tabstrip and multipage

Source: Internet
Author: User
The following figure shows the details of using tabstrip and multipage. Code To help those who are just using it, and to help me find it on my own.
1. html <! -- Point the targetid of tabstrip to the ID of multipage. --> < Iewc: tabstrip ID = "Mytabstrip" Style = "Font-size: 12px; font-family: verdana" Runat = "Server" Height = "25px"
Sepdefaultstyle = "Border-bottom: solid 1px # cacccc ;" Tabselectedstyle = "Border: solid 1px # cacccc; Background: white; padding-left: 5px; padding-Right: 5px; border-bottom: none ;"
Tabhoverstyle = "Color: red ;" Tabdefaultstyle = "Border: solid 1px # cacccc; Background: # f1f3f3; padding-left: 5px; padding-Right: 5px ;" Targetid = "Mymultipage" >
< Iewc: Tab Text = "Tag1" > </ Iewc: Tab >
< Iewc: tabseparator > </ Iewc: tabseparator >
< Iewc: Tab Text = "Tag2" > </ Iewc: Tab >
< Iewc: tabseparator > </ Iewc: tabseparator >
< Iewc: Tab Text = "Tag 3" > </ Iewc: Tab >
< Iewc: tabseparator Defaultstyle = "Width: 100% ;" > </ Iewc: tabseparator >
</ Iewc: tabstrip > < Iewc: multipage ID = "Mymultipage" Style = "Border-Right: # cacccc 1px solid; padding-Right: 5px; border-top: Medium none; padding-left: 5px; padding-bottom: 5px; border-left: # cacccc 1px solid; padding-top: 5px; border-bottom: # cacccc 1px solid"
Runat = "Server" Font-size = "12px" Borderstyle = "Groove" Borderwidth = "0px" >
< Iewc: pageview ID = "Page3" Width = "100%" >
< Table Bordercolor = '# Cccccc' Cellspacing = '0' Bordercolordark = '# Cccccc' Cellpadding = '3'
Width = '000000' Align = 'Center' Border = '0' >
< Tr >
< TD >
< ASP: Label ID = "Lab_page3" Runat = "Server" > </ ASP: Label > </ TD >
</ Tr >
</ Table >
</ Iewc: pageview >
< Iewc: pageview ID = "Page1" Width = "100%" >
< Table Bordercolor = '# Cccccc' Cellspacing = '0' Bordercolordark = '# Cccccc' Cellpadding = '3'
Width = '000000' Align = 'Center' Border = '0' >
< Tr >
< TD >
< ASP: Label ID = "Lab_page1" Runat = "Server" > </ ASP: Label > </ TD >
</ Tr >
</ Table >
</ Iewc: pageview >
< Iewc: pageview ID = "Page2" Width = "100%" >
< Table Style = "Font-size: 8pt" Cellpadding = "3" Width = "100%" >
< Tr >
< TD >
< ASP: Label ID = "Lab_page2" Runat = "Server" > </ ASP: Label > </ TD >
</ Tr >
</ Table >
</ Iewc: pageview >
</ Iewc: multipage >

2. CS // Load mutipages
Label labspec = (Label) mymultipage. controls [ 0 ]. Findcontrol ( " Lab_page3 " );
Labspec. Text = "Label1" ;

Label labintro = (Label) mymultipage. controls [ 0 ]. Findcontrol ( " Lab_page1 " );
Labintro. Text = "Label2" ;

Label labgifs = (Label) mymultipage. controls [ 0 ]. Findcontrol ( " Lab_page2 " );
Labgifs. Text = "Label3" ;

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.