惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

博客园 - Mack.Z

压缩ASP.NET中的ViewState的改进方法 - Mack.Z - 博客园 压缩ASP.NET中的ViewState MSPlus.TabControl V1.1 版本发布 Html Convert Image (Html2Image) Gaia(MasterPage)我的第一个开源控件 MSN Winks 文件的解密 学习SPRING中的一个疑惑.请教一下各位 发布MSPlus DatePicker WebControl V2.0.1201 版本 发布MSPlus ToolBar&Menu WebControl V1.1.0910 版本 MSPlus DatePicker WebControl FreeVersion 1.1.0906 发布啦! 关于MSPlus控件下载后用VS.NET打开提示目录不对的解决方法 - Mack.Z - 博客园 MSPlus ToolBar&Menu WebControl FreeVersion 1.1.0830 发布拉 - Mack.Z [原创]复合控件中如何将客户端的处理结果通知服务器端的解决办法 [原创]屏蔽.NET自定义开发组件中的属性 MSPlus DataList Control(大数据量时的分页演示) MSPlus DataList Control 1.1.0818(个人版) 发布! MSPLUS-DropDownList Control [DEMO Download] 想开发.Net Server Controls 的初学者必读资料 MSPlus-ToolBar Control - Mack.Z - 博客园
发布MSPlus TabControl WebControl V1.0.0710 版本
Mack.Z · 2005-07-14 · via 博客园 - Mack.Z

MSPlus.TabControl支持状态保存,SelectedIndexChanged事件,支持多层嵌套等功能...

MSPlus.TabControl常用属性和方法以及事件的说明:

Unit Width = 控件的宽度
Unit Height = 控件的高度
Int32 SelectedIndex  = 获取或设置选中的Tab页索引编号
SelectionMode(Server or Client)= 每次Tab页的切换在客户端完成还是每次都需要返回服务器端
Items = 获取所有Tab页的容器
SelectedIndexChanged(事件)= Tab选中页改变时触发的事件

使用样例:

<%@ Register TagPrefix="msp" Namespace="MSPlus" Assembly="MSPlus.TabControl" %>

..

<LINK href="Common/CSS/Default.CSS" type="text/css" rel="stylesheet">
<script language="JavaScript" src="Common/JavaScript/Tab.js"></script>

..

<msp:tabcontrol id="TabControl1" style="Z-INDEX: 100; LEFT: 128px; POSITION: absolute; TOP: 80px"
    runat
="server" SelectionMode="Server" width="500" height="150">
    
<msp:TabPage Caption="春暖花开" ID="tabPage1">
        
<msp:TabControl id="TabControl2" runat="server" height="120">
            
<msp:TabPage Caption="春暖" ID="tabPage11">多层TabControl嵌套</msp:TabPage>
            
<msp:TabPage Caption="夏日" ID="tabPage21"></msp:TabPage>
            
<msp:TabPage Caption="秋高" ID="tabPage31"></msp:TabPage>
            
<msp:TabPage Caption="冬季" ID="tabPage41"></msp:TabPage>
        
</msp:TabControl>
    
</msp:TabPage>
    
<msp:TabPage Caption="夏日炎炎" ID="tabPage2">
        
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
        
<br>
        
<asp:Button id="Button3" Text="DoPostBack(测试状态保存)" runat="server"></asp:Button>
    
</msp:TabPage>
    
<msp:TabPage Caption="秋高气爽" ID="tabPage3">
        
<asp:Button id="Button2" Text="DoPostBack" runat="server"></asp:Button>
    
</msp:TabPage>
    
<msp:TabPage Caption="冬季运动" ID="tabPage4">
        
<asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
    
</msp:TabPage>
</msp:tabcontrol>


namespace TabControlDemo
{
    
/// <summary>
    
/// WebForm1 的摘要说明。
    
/// </summary>

    public class WebForm1 : System.Web.UI.Page
    
{
        
protected MSPlus.TabControl TabControl1;
    
        
private void Page_Load(object sender, System.EventArgs e)
        
{
            
// 在此处放置用户代码以初始化页面
        }


        
#region Web 窗体设计器生成的代码
        
override protected void OnInit(EventArgs e)
        
{
            
//
            
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
            
//
            InitializeComponent();
            
base.OnInit(e);
        }

        
        
/// <summary>
        
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
        
/// 此方法的内容。
        
/// </summary>

        private void InitializeComponent()
        
{    
            
this.TabControl1.SelectedIndexChanged += new System.EventHandler(this.TabControl1_SelectedIndexChanged);
            
this.Load += new System.EventHandler(this.Page_Load);

        }

        
#endregion


        
private void TabControl1_SelectedIndexChanged(object sender, System.EventArgs e)
        
{
            事件被触发
        }


    }

需要源码的朋友,可留下EMAIL

下载MSPlus.TabControl V1.0 Beta演示和控件


查看MSPlus.TabControl V1.1 更新说明

下载MSPlus.TabControl V1.1 演示和控件 - 2005-7-15