All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,2.0中随机读取Access数据库记录_[Asp.Net教程]
asp.net中对数据库表插入null空值的问题_.net资料_编程技术
问题解决-无法载入MYSQL扩展,请检查PHP配置_php资料_编程技术
delphi工程选项及桌面配置文件(.dof)
ASP.NET网页发送和返馈运行机制_[Asp.Net教程]
在ASP.NET,Atlas中调用Web,Service_[Asp.Net教程]
每个开发人员现在应该下载的十种必备工具,4_[Asp.Net教程]
asp.net1.1和asp.net,2.0共存_[Asp.Net教程]
详细讲解PHP编程中分页显示的制作_[PHP教程]
dropdownlist,datagrid数据绑定简单实现_[Asp.Net教程]
Reading number is top 10 pictures
The money of more than 100 countries and regions22
The cat shit
Li Zongrui hunting video screenshots1
In 2013 hercules Arnold classic1
Ashlynn Brooke show proud chest measurement2
More attractive than sora aoi4
Seductive beauty of crime2
再发一张清纯美眉的照片
[猫扑大杂烩]华东师范墙上看到的捐精告示 15毫升3600元
修电脑也有这么漂亮的美女
Download software ranking
Boxer's Top ten classic battle10
打鸟视频
Unix video tutorial20
apache-tomcat-6.0.33
Sora aoi 120 minutes
linux高级编程
Ashlynn Video2
1400篇各类破解文章
jBuilder2006
金山office2007
delv published in(发表于) 2014/1/27 6:47:39 Edit(编辑)
ASP.NET2.0中Tabs的简单实现_[Asp.Net教程]

ASP.NET2.0中Tabs的简单实现_[Asp.Net教程]

ASP.NET2.0中Tabs的简单实现_[Asp.Net教程]

不用Asp.net Ajax ControlToolKit中的Tabs控件实现Tabs效果的简单实现方法:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>





Tabs







onClick="btnView1_Click" />
onClick="btnView2_Click" />
onClick="btnView3_Click" />



这是View1!


这是View2!


这是View3!







using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;


public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MultiView1.ActiveViewIndex = 0;
}
}
protected void MultiView1_ActiveViewChanged(object sender, EventArgs e)
{
switch (MultiView1.ActiveViewIndex)
{
case 0:
btnView1.BorderStyle = BorderStyle.Inset;
btnView2.BorderStyle = BorderStyle.NotSet;
btnView3.BorderStyle = BorderStyle.NotSet;
break;
case 1:
btnView2.BorderStyle = BorderStyle.Inset;
btnView1.BorderStyle = BorderStyle.NotSet;
btnView3.BorderStyle = BorderStyle.NotSet;
break;
case 2:
btnView3.BorderStyle = BorderStyle.Inset;
btnView1.BorderStyle = BorderStyle.NotSet;
btnView2.BorderStyle = BorderStyle.NotSet;
break;
}
}
protected void btnView1_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 0;
}
protected void btnView2_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 1;
}
protected void btnView3_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 2;
}
}
演示图片:




来源:cnblogs







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.