<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="AddCoupanDetails.aspx.cs"
    Inherits="Admin_AddCoupanDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<script src="script/ddlevelsmenu.js" type="text/javascript"></script>

    <script src="script/func.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="contentmain">
<div id="content">
<div id="detailform">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	
<tr>
  <td><table cellpadding="0" cellspacing="0" align="center">
    <tr><td colspan="10" style="text-align:center"><asp:Label ID="lblsucess" runat="server"></asp:Label>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td width="36%">&nbsp;</td>
    <td width="9%">Coupon No</td>
    <td width="1%"><strong>:</strong></td>
    <td width="54%"><asp:TextBox ID="txtCoupanNo" runat="server"></asp:TextBox></td>
  </tr>
 
  
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><strong>&nbsp;</strong></td>
    <td style="padding:10px ;"><asp:Button ID="btnSubmit" runat="server" Text="Submit" 
            class="button active" onclick="btnSubmit_Click" /></td>
  </tr>
</table>






<div id="Showdata" runat="server">

<asp:GridView ID="GridViewSample" runat="server" AutoGenerateColumns="False" Font-Names="Verdana" ShowHeader="true" CssClass="HeaderFreeze"

AllowPaging="true" ShowFooter="true" PageSize="5" Width="75%" OnPageIndexChanging="GridViewSample_PageIndexChanging" BackColor="White"

OnRowCancelingEdit="GridViewSample_RowCancelingEdit" OnRowEditing="GridViewSample_RowEditing"

OnRowUpdating="GridViewSample_RowUpdating"

OnRowDeleting="GridViewSample_RowDeleting" 

BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" EmptyDataText="Record not found">

<AlternatingRowStyle BackColor="#FFD4BA" />

<FooterStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" />

<PagerStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" />

<HeaderStyle Height="30px" BackColor="#CCCCCC" Font-Size="15px" BorderColor="#CCCCCC"

BorderStyle="Solid" BorderWidth="1px" />

<RowStyle Height="20px" Font-Size="13px" BorderColor="#CCCCCC" BorderStyle="Solid"

BorderWidth="1px" />

<Columns>

<asp:TemplateField HeaderText="Id" Visible="false">

<ItemTemplate>

<asp:Label ID="lblCustID" runat="server" Text='<%#Eval("Id") %>'></asp:Label>

</ItemTemplate>



</asp:TemplateField>

<asp:TemplateField HeaderText="Coupon No." HeaderStyle-Width="10%">

<ItemTemplate>

<asp:Label ID="lblcouponno" runat="server" Text='<%#Eval("CoupanNo") %>'></asp:Label>

</ItemTemplate>

<EditItemTemplate>

<asp:TextBox ID="txtcouponno" runat="server" Text='<%#Eval("CoupanNo") %>'></asp:TextBox>

</EditItemTemplate>



<HeaderStyle Width="15%"></HeaderStyle>

</asp:TemplateField>

<asp:TemplateField HeaderText="Coupon Date" HeaderStyle-Width="15%">

<ItemTemplate>

<asp:Label ID="lblCouponDate" runat="server" Text='<%#Eval("Date_Time") %>'></asp:Label>

</ItemTemplate>





<HeaderStyle Width="15%"></HeaderStyle>

</asp:TemplateField>

<asp:TemplateField HeaderText="Coupon Status" HeaderStyle-Width="15%">

<ItemTemplate>

<asp:Label ID="lblstatus" runat="server" Text='<%#Eval("Status") %>'></asp:Label>

</ItemTemplate>







<HeaderStyle Width="10%"></HeaderStyle>

</asp:TemplateField>



<asp:TemplateField HeaderText="Edit/Delete" HeaderStyle-Width="15%">

<ItemTemplate>

<asp:LinkButton ID="btnEdit" Text="Edit" runat="server" CommandName="Edit" />

<span onclick="return confirm('Are you sure want to delete?')">

<asp:LinkButton ID="btnDelete" Text="Delete" runat="server" CommandName="Delete" />

</span>

</ItemTemplate>

<EditItemTemplate>

<asp:LinkButton ID="btnUpdate" Text="Update" runat="server" CommandName="Update" />

<asp:LinkButton ID="btnCancel" Text="Cancel" runat="server" CommandName="Cancel" />

</EditItemTemplate>



<HeaderStyle Width="15%"></HeaderStyle>

</asp:TemplateField>

</Columns>

</asp:GridView>

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

</div></div>
</asp:Content>

