|
<%@ Page Language="C#" MasterPageFile="~/MasterPages/DisplayCart.master" AutoEventWireup="true" CodeFile="checkout.aspx.cs" Inherits="Controllers_Store_checkout" Title="Untitled Page" Theme="store" %>
<asp:Content ID="Content1" ContentPlaceHolderID=ContentPlaceHolder1 Runat="Server">
<asp:Label ID="notice" CssClass="notice" runat="server" ></asp:Label><br/><br/>
<asp:Label ID="Label1" runat="server" Text="Label">Please enter your details below</asp:Label>
<asp:DetailsView
id="OrderForm"
DataKeyNames="Id"
AutoGenerateEditButton="false"
AutoGenerateRows="false"
DefaultMode="Edit"
EnableViewState="true"
Runat="server"
OnItemUpdating="ODS_CheckOut_ItemUpdating">
<Fields>
<asp:TemplateField HeaderText="Name">
<EditItemTemplate>
<asp:TextBox ID="TextBoxName"
Text='<%# Bind("Name")%>'
runat="server"/>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
ControlToValidate="TextBoxName"
Display=Dynamic runat="server">(required)</asp:RequiredFieldValidator>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Email">
<EditItemTemplate>
<asp:TextBox ID="TextBoxEmail"
Text='<%# Bind("Email")%>'
runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
ControlToValidate="TextBoxEmail"
Display=Dynamic runat="server">(required)</asp:RequiredFieldValidator><br/>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Address">
<EditItemTemplate>
<asp:TextBox ID="TextBoxAddress"
Text='<%# Bind("Address")%>'
runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
ControlToValidate="TextBoxAddress"
Display=Dynamic runat="server">(required)</asp:RequiredFieldValidator><br/>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Pay Using:">
<EditItemTemplate>
<asp:DropDownList id="PayTypeList"
DataTextField="pay_type"
DataValueField="pay_type"
runat=server>
<asp:ListItem Value="wt">Select Payment Option</asp:ListItem>
<asp:ListItem Value="wt">Check</asp:ListItem>
<asp:ListItem Value="gr">Credit Card</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowEditButton="true" UpdateText="Check Out" ShowCancelButton="false"/>
</Fields>
</asp:DetailsView>
<br/>
<asp:ObjectDataSource ID="ODS_CheckOut" OnObjectCreating="ODS_CheckOut_ObjectCreating"
runat="server">
</asp:ObjectDataSource>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
After defending his
PhD thesis in 2005 (computational nuclear physics) at Vanderbilt in Nashville, the author decided to pursue a career in software development. As a long time open source advocate, he started with writing web applications using Linux-Apache-MySql-P (LAMP) framework. After that experience, he decided to embrace Microsoft technologies.
Currently working as a web developer in .NET platform in the online payments company.