熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

ASP.NET項目開發指南:圖書類別和圖書信息的管理(8)[2]

2022-06-13   來源: .NET編程 

  ST_ProductAddaspx頁面的主要HTML代碼如程序所示

  程序  ST_ProductAddaspx

    <form id=Form runat=server>

        <TABLE id=Table cellSpacing=

  cellPadding= border=>

            <TR>

                <TD colSpan=>&nbsp;</TD>

            </TR>

            <TR>

                <TD>

                    商品編號</TD>

                <TD style=width: px><asp:textbox id=txtNumber

        runat=server ReadOnly=True>系統自動生成</asp:textbox></TD>

                <TD>商品名稱</TD>

                <TD style=width: px>

                    &nbsp;<asp:TextBox ID=txtName

                        runat=server></asp:TextBox>

                    </TD>

            </TR>

            <TR>

                <TD>

                    商品價格</TD>

                <TD style=width: px>

                  <!TextBox控件>

                    <asp:TextBox ID=txtPrice

  runat=server></asp:TextBox>

                    </TD>

                <TD>商品售價</TD>

                <TD style=width: px>

                    &nbsp;<asp:TextBox ID=txtSoldPrice

                        runat=server></asp:TextBox>

                    </TD>

            </TR>

            <TR>

                <TD>

                    出版社</TD>

                <TD style=width: px>

                    <asp:TextBox ID=txtPublisher

                        runat=server></asp:TextBox>

                    </TD>

                <TD>ISBN:</TD>

                <TD style=width: px>

                    &nbsp;<asp:TextBox ID=txtISBN

                        runat=server></asp:TextBox>

                    </TD>

            </TR>

            <TR>

                <TD>

                    頁數</TD>

                <TD style=width: px>

                    <asp:TextBox ID=txtPage runat=server></asp:TextBox>

                    </TD>

                <TD>出版日期</TD>

                <TD style=width: px>

                    &nbsp;<asp:TextBox ID=txtPublishDate

                    runat=server></asp:TextBox></TD>

            </TR>

            <TR>

                <TD>作者</TD>

                <TD colspan=>

                    <asp:TextBox ID=txtAuthor

                    runat=server></asp:TextBox></TD>

            </TR>

            <TR>

                <TD>商品圖片</TD>

                <TD colspan=>

                    <input id=txtFile style=width: px type=file

                        runat=server /></TD>

            </TR>

  

            <tr>

                <td colspan=>

                    <asp:Button id=btnOK CssClass=button

    runat=server Text=確定 onclick=btnOK_Click></asp:Button></td>

            </tr>

        </TABLE>

    </form>

       返回目錄ASPNET項目開發指南

       編輯推薦

       ASPNET MVC 框架揭秘

       ASPNET開發寶典

       ASP NET開發培訓視頻教程

[]  []  


From:http://tw.wingwit.com/Article/program/net/201311/15832.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.