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

ASP.NET項目開發指南:訂單的生成(1)

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

    訂單的生成(

  觸發btnNext_Click事件時會將頁面定向到ST_ShipInfoaspx頁面如圖所示

  訂單的生成

  ST_ShipInfoaspx的主要HTML代碼

  此頁面中有幾個文本框用來輸入收貨人的基本信息還有兩個下拉列表框用來讓用戶選擇送貨方式和支付方式ST_ShipInfoaspx的主要HTML代碼如程序所示

  程序  ST_ShipInfoaspx

    <form id=Form method=post runat=server>

    <div align=center>

        <table id=Table height=%

  cellSpacing= cellPadding=

            width= border=>

            <tr>

                <td vAlign=top width=><uc:st_header

        id=ST_Header runat=server></uc:st_header></td>

            </tr>

            <tr>

                <td style=HEIGHT: %

  vAlign=top width=%><table

    width= align=center border=

  cellspacing= cellpadding=

                        class=border

                        bordercolor=#cccccc>

                        <tr>

                            <td bgColor=#ffffff colSpan=

                                height=></td>

                        </tr>

                        <tr bgcolor=#ffffff>

                            <td bgColor=#fff

  colspan= height=

                                align=center>

  請正確填寫以下收貨信息</td>

                        </tr>

                        <tr>

                            <td bgColor=#cccccc colSpan=

                                height=></td>

                        </tr><tr>

                            <td bgColor=#fff colSpan=

                                height=></td>

                        </tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                            class=tablexia>收貨人真實姓名</td>

                            <td width=% height=

                    style=PADDINGLEFT: px class=tablexia>

                                <!TextBox控件>

                                <asp:TextBox id=txtName

    runat=server></asp:TextBox>請務必正確填

  寫您的真實姓名以免造成錯誤的投遞或

                            郵寄時間上的延誤

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                    class=tablexia>收貨詳細地址</td>

                            <td width=% height=

                    style=PADDINGLEFT: px class=tablexia>

                                <asp:TextBox id=txtAddress

                runat=server></asp:TextBox>

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

    class=tablexia>聯系電話</td>

                            <td width=% height=

            style=PADDINGLEFT: px class=tablexia>

                                <asp:TextBox id=txtPhone

    runat=server></asp:TextBox>請准確填寫以方

  便我們為您確定訂單和售後服務

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                    class=tablexia>收貨郵編</td>

                            <td width=% height=

                style=PADDINGLEFT: px class=tablexia>

                                <asp:TextBox id=txtPostCode

        runat=server></asp:TextBox>如送貨方式為郵件請填寫正確

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                        class=tablexia>電子郵件</td>

                            <td width=% height=

                    style=PADDINGLEFT: px

  class=tablexia>

                                <asp:TextBox id=txtEmail

                    runat=server></asp:TextBox>

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                        class=tablexia>

  <strong><font color=red>

                        </font></strong>&nbsp;送貨方式</td>

                            <td width=% height=

                    style=PADDINGLEFT: px

  class=tablexia>

                                <!下拉列表框>

                                <select name=

  SHFS_

                        style=WIDTH:px

  id=Selectrunat=server>

                                <option value=

  郵寄 selected>郵寄</option>

                                <option value=

  送貨上門>送貨上門</option>

                                </select>

                            </td></tr>

                        <tr bgcolor=#ffffff>

                            <td width=%

  height= align=right

                            class=tablexia>

  支付方式</td>

                            <td width=%

  height=

                            style=PADDINGLEFT:

  px class=tablexia>

                            <!下拉列表框>

                            <select name=

  ZFFS_

                        style=WIDTH:px

  id=Select runat=server>

                            <option value=

  貨到付款 selected>貨到付款

                            </option>

                            <option value=

  郵局匯款>郵局匯款</option>

                            <option value=

  銀行匯款>銀行匯款</option>

                            </select>

                            </td></tr>

                        <tr>

                            <td colspan=>

                           <div id=yjdz_

                               style=DISPLAY:inline>

                           <table width=

  border= cellspacing=

                               cellpadding=>

                               <tr bgcolor=#ffffff>

                               <td width=%

  height= align=right

       class=tablexia><font color=red>郵寄地址</font></td>

                               <td width=%

  style=PADDINGLEFT: px

                       class=tablexia><font color=red>

                   ****************************&nbsp;

           匯款單注明訂單號<font></font></font>

  </td></tr></table>

                           </div></td></tr>

                       <tr>

                           <td colspan=>

                           <div id=yhzh_

                               style=DISPLAY:inline>

                           <table width=

  border= cellspacing=

                                   cellpadding=>

                           <tr bgcolor=#ffffff>

                           <td width=%

  height= align=right

           class=tablexia><font color=

  red>銀行賬號</font></td>

                           <td width=%

  style=PADDINGLEFT: px

           class=tablexia><font color=

  red>&nbsp;

               匯款單注明訂單號</font></td>

                       </tr></table>

                       </div></td>

                       </tr></table>

               </td></tr>

           <tr>

               <td align=center><FONT

  face=宋體>&nbsp;</FONT>

                   <!Button控件>

                   <asp:button id=btnNext

  runat=server Text=生成訂單

       CssClass=button onclick=

  btnNext_Click></asp:button></td>

           </tr>

           <tr>

               <td vAlign=top width=%><uc:st_bottom

                   id=ST_Bottom runat=

  server></uc:st_bottom></td>

           </tr>

       </table>

   </div>

   </form>

       返回目錄ASPNET項目開發指南

       編輯推薦

       ASPNET MVC 框架揭秘

       ASPNET開發寶典

       ASP NET開發培訓視頻教程


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