📄 checkout.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" codefile="Checkout.aspx.cs" Inherits="Checkout" title="Checkout" %>
<%@ Register TagPrefix="wu" TagName="ShoppingCart" Src="ShoppingCart.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="server">
<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="LoginView1" Runat="server">
<AnonymousTemplate>
<asp:passwordrecovery id="PasswordRecovery1" runat="server" />
</AnonymousTemplate>
</asp:LoginView>
</div>
<asp:wizard id="Wizard1" runat="server" activestepindex="1"
OnFinishButtonClick="Wizard1_FinishButtonClick"
OnNextButtonClick="Wizard1_NextButtonClick"
OnActiveStepChanged="Wizard1_ActiveStepChanged">
<WizardSteps>
<asp:WizardStep runat="server" Title="Login" AllowReturn="False">
<asp:login id="Login1" runat="server"
CreateUserText="Not a member? Create an account"
CreateUserUrl="~/createaccount.aspx"></asp:login>
</asp:WizardStep>
<asp:WizardStep runat="server" Title="Delivery Address">
<asp:checkbox id="chkUseProfileAddress" runat="server" autopostback="True"
text="Use membership address" OnCheckedChanged="chkUseProfileAddress_CheckedChanged"></asp:checkbox><br />
<table border="0">
<tr><td>Name</td><td><asp:textbox id="txtName" runat="server" /></td></tr>
<tr><td>Address</td><td><asp:textbox id="txtAddress" runat="server" /></td></tr>
<tr><td>City</td><td><asp:textbox id="txtCity" runat="server" /></td></tr>
<tr><td>County</td><td><asp:textbox id="txtCounty" runat="server" /></td></tr>
<tr><td>Postcode</td><td><asp:textbox id="txtPostCode" runat="server" /></td></tr>
<tr><td>Country</td><td><asp:textbox id="txtCountry" runat="server" /></td></tr>
</table>
</asp:WizardStep>
<asp:WizardStep runat="server" Title="Payment">
Card Type:
<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="0123456789" ReadOnly="True"/>
<br />
Expires:
<asp:textbox id="txtExpiresMonth" runat="server" columns="2" />
/
<asp:textbox id="txtExpiresYear" runat="server" columns="4" />
</asp:WizardStep>
<asp:WizardStep runat="server" Title="Finish">
<wu:ShoppingCart runat="server" ID="ShoppingCart1"></wu:ShoppingCart>
<br /><br />
Please confirm you wish to have
deducted from your credit card.
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Complete" Title="Order Complete">
Thank you for your order.
</asp:WizardStep>
</WizardSteps>
<SideBarStyle VerticalAlign="Top"></SideBarStyle>
</asp:wizard>
<asp:Label ID="CreateOrderErrorLabel" runat="server" visible="false">
We are sorry but there was an error creating you order.<br /><br />
The site administrator has been notified of this, and the club shop <br />
have been sent copies of your order details, so once they've finished their <br />
afternoon tea, they will process the order and send you a manual email confirmation.
</asp:Label>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -