• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 使用ASP.Net中的自定義控件[5-8]

    發表于:2008-04-09來源:作者:點擊數: 標簽:自定義控件
    ——此文章摘自《ASP.NET 網絡 數據庫 開發 實例精解》定價:¥62.00 特價:¥46.50 詳細 控件myDataGrid用來顯示數據;控件ShowMsg用來獲取DataGrid控件中被選擇的子項中的所有文本;控件CheckMsg用來顯示控件ShowMsg獲取的文本。頁面TestCheckBox.aspx的設
    ——此文章摘自《ASP.NET網絡數據庫開發實例精解》定價:¥62.00 特價:¥46.50 詳細>>

        控件myDataGrid用來顯示數據;控件ShowMsg用來獲取DataGrid控件中被選擇的子項中的所有文本;控件CheckMsg用來顯示控件ShowMsg獲取的文本。頁面TestCheckBox.aspx的設計界面如     圖12-13所示。


    圖12-13  頁面TestCheckBox.aspx的設計界面

         頁面TestCheckBox.aspx的HTML設計代碼如下:
        <%@ Page language="c#" Codebehind="TestCheckBox.aspx.cs"
        AutoEventWireup="false" Inherits="Example_12_5.TestCheckBox" %>
        <HTML><HEAD><title>Example_12_5:使用ASP.NET中的自定義控件</title></HEAD>
        <asp:DataGrid id="myDataGrid" runat="server"
        AutoGenerateColumns="False">
        <Columns>
        <asp:TemplateColumn HeaderText="名稱"><ItemTemplate>
        <asp:Label ID="Name" Runat="server" Text='<%#
        DataBinder.Eval(Container.DataItem, "Name") %>'>
        </asp:Label>
        </ItemTemplate></asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="類型"><ItemTemplate>
        <asp:Label ID="Type" Runat="server" Text='<%#
        DataBinder.Eval(Container.DataItem, "Type") %>'>
        </asp:Label>
        </ItemTemplate></asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="數據"><ItemTemplate>
        <asp:Label ID="Data" Runat="server" Text='<%#
        DataBinder.Eval(Container.DataItem, "Data") %>'>
        </asp:Label>
        </ItemTemplate></asp:TemplateColumn>
        </Columns>
        </asp:DataGrid>
        <asp:Button id="ShowMsg" runat="server" Text="顯示消息"></asp:Button>
        <asp:Label id="CheckMsg" runat="server" Width="100%"
        ForeColor="Red"></asp:Label>
        </HTML>

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>