A project name is called Ajaxcontroltoolkit_tab.
Step two: Edit the Default.aspx page,
You first need to drag a Tabcontainer control under the ScriptManager of the form, and then set its properties:
You can see that each tabcontainer need to have TabPanel panel in the properties of the set HeaderText, which is the name of the tab, and then each panel needs to ContentTemplate to display the content, casually fill in the point displayed.
Then add a few more tabpanel, and the contents of each of the following TabPanel can be copied here.
Because I set the CssClass property here, the control overloads the CSS instead of the default CSS style.
Step three: We need to create a CSS file to store the custom tab style.
Right-click Project, tap ' Add New Item ', create a file called Stylee.css, and then add the <Head> node section of the Default.aspx file
<link rel= "stylesheet" type= "Text/css" href= "Stylesheet.css"/>
Here are the CSS styles used:
/* Ajax__tab_ie-theme Theme * *
. Ajax__tab_ie-theme. Ajax__tab_header
{
padding-left:5px;
}
. ajax__tab_ie-theme. Ajax__tab_header. Ajax__tab_tab
{
margin-right:0px;
Background:url (img/ie/tab_unselected.gif);
width:116px;
padding:9px 0px 3px 0px;
Text-align:center;
Color: #006699;
Font-family:verdana;
font-size:13px;
Display:block;
}
. ajax__tab_ie-theme. ajax__tab_active. Ajax__tab_tab
{
padding:6px 0px 3px 0px;
Background:url (img/ie/tab_selected.gif);
}
. Ajax__tab_ie-theme. Ajax__tab_body
{
Background:url (img/ie/ie_tabbacker_720x296.jpg) no-repeat;
font-size:13px;
Font-family:verdana;
height:296px;
width:716px;
}
. ajax__tab_ie-theme. Ajax__tab_body Div
{
padding:8px;
}
The fourth step: Add the picture to the project day: Create an IMG folder, then add the picture, the use of the picture in the following provided by the Code link can be downloaded.
4. Code Download:
Package download