⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiviewdemo.aspx

📁 这是一个教学网站的源代码,有学生版快和老师版快,能实现添加删除资源,老师能上传资源,实现学生老师之间的互动,
💻 ASPX
字号:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MultiViewDemo.aspx.cs" Inherits="AdvanceControl_MultiViewDemo" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    
    <table style="width: 531px">
        <tr>
            <td style="width: 353px">
            <fieldset style="width: 300px">
                <legend class="mainTitle">MultiView和View控件典型应用</legend>
                <br />
                <table id="Table1" height="95%" cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td style="height: 36px">
                            <table id="TopTable" runat="server" cellspacing="0" cellpadding="0" width="100%"
                                border="0">
                                <tr style="height: 22px">
                                    <td class="SelectedTopBorder" id="Cell1" align="center" width="60" style="height: 22px">
                                        <asp:LinkButton ID="LBView1" runat="server" CssClass="TopTitle" CommandArgument="0" OnCommand="LBView_Command">常规</asp:LinkButton>
                                    </td>
                                    <td class="SepBorder" width="2px" style="height: 22px">
                                        &nbsp;</td>
                                    <td class="TopBorder" id="Cell2" align="center" width="60" style="height: 22px">
                                        <asp:LinkButton ID="LBView2" runat="server" CssClass="TopTitle" CommandArgument="1" OnCommand="LBView_Command">硬件</asp:LinkButton>
                                    </td>
                                    <td class="SepBorder" width="2px" style="height: 22px">
                                        &nbsp;</td>
                                    <td class="TopBorder" id="Cell3" align="center" width="60" style="height: 22px">
                                        <asp:LinkButton ID="LBView3" runat="server" CssClass="TopTitle" CommandArgument="2" OnCommand="LBView_Command">高级</asp:LinkButton>
                                    </td>
                                    <td class="SepBorder" style="height: 22px">
                                        &nbsp;</td>
                                </tr>
                            </table>
                            MultiView是容器,用来放置View控件<br />
                            <br />
                            通过ActiveViewIndex属性来控制显示的View</td>
                    </tr>
                    <tr>
                        <td>
                            <table class="ContentBorder" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td valign="top" style="width: 356px">
                                        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                                            <asp:View ID="View1" runat="server">
                                                <img src="../images/tab0.jpg" />&nbsp;</asp:View>
                                            <asp:View ID="View2" runat="server">
                                                &nbsp;<img src="../images/tab2.jpg" /></asp:View>
                                            <asp:View ID="View3" runat="server">
                                                &nbsp;<img src="../images/tab3.jpg" /></asp:View>
                                            &nbsp;
                                        </asp:MultiView>&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </fieldset>
            </td>
            
           
        </tr>
    </table>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -