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

ASP.NET入門教程 13.4.5 計劃結賬[2]

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

    ()將下列代碼添加到Step (Payment)的向導步驟

 

<asp:DropDownList id=lstCardType runat=server>

                    <asp:ListItem>MasterCard</asp:ListItem>   

                    <asp:ListItem>Visa</asp:ListItem>   

                </asp:DropDownList>

                <br />

                Card Number: <asp:Textbox id=txtNumber runat=server Text= ReadOnly=True/>

                <br />

                Expires:

                <asp:textbox id=txtExpiresMonth runat=server columns= />

                /

                <asp:textbox id=txtExpiresYear runat=server  columns= />

    ()返回到Step (確認)的Design View輸入如下代碼
    Please confirm you wish to have
    deducted from your credit card

    ()選擇WroxShoppingCartascx將其拖放到已經創建的文本上的Wizard控件中

    ()單擊Complete按鈕在Step (Complete)的Design View中只輸入Thank you for your order

    ()轉到Source View在<asp:Wizard>控件上添加如下代碼

 

<asp:Label id=NoCartlabel runat=server visible=false>

        There are no items in your cart Visit the shop to buy items

    </asp:Label>

   

    <div style=float:right>

        <asp:LoginView ID=LoginView Runat=server>

            <AnonymousTemplate>

                <asp:passwordrecovery id=PasswordRecovery runat=server />

            </AnonymousTemplate>

        </asp:LoginView>

    </div>

[]  []  []  []  []  []  []  []  


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