<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="TransactionHistory.aspx.cs" Inherits="NECPPATEL.TransactionHistory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            color: #FF0000;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <script language="javascript" type="text/javascript" >
             function validateEmail() {
     if (document.getElementById("<%=txtMember.ClientID%>").value == "") {
                 alert("Please enter member name.");
                 document.getElementById("<%=txtMember.ClientID%>").focus();
                return false;
     }
         }
         </script>
    <table>
        <tr>
            <td colspan="3">
                Please search name here
            </td>
        </tr>
        <tr>
            <td style="width:120px !important">
                Member Name
            </td>
            <td colspan="2">
                <asp:TextBox ID="txtMember" runat="server"></asp:TextBox><span style="color:red">*</span></td>
        </tr>
        
        <tr><td></td><td colspan="2">
            <asp:Button ID="btnSearch" Enabled="true" runat="server" Text="Search" OnClick="btnSearch_Click"  OnClientClick="return validateEmail();" />
            </td></tr>
        <tr><td colspan="3">
            <span class="auto-style1"></td></tr>
        <tr><td colspan="3">

            <asp:Label ID="lblSearchResult" runat="server" Text=""></asp:Label>
            </td></tr>
        <tr> 
            <td colspan="3"><asp:GridView ID="gvResult" runat="server" AutoGenerateColumns="False" >
                <Columns>
                    <asp:BoundField HeaderText="id" DataField="id" Visible="false"/>
                    <asp:BoundField HeaderText="First Name" DataField="fname"/>
                    <asp:BoundField HeaderText="Last Name"  DataField="lname" />
                    <asp:HyperLinkField DataNavigateUrlFields="link_transactions" Target="_blank" Text="View All Transactions" />
                    <asp:HyperLinkField DataNavigateUrlFields="link_profile" Target="_blank" Text="Update Profile" />
                    
                </Columns>
                </asp:GridView></td></tr>
    </table>

</asp:Content>
