<%@ Page Title="" Language="C#" MasterPageFile="~/rsvpmaster.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="NECPATEL.Search" %>
<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">
    <div class="main_content">
        <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>
        <br>
        <br>
        &nbsp;<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 visible="false">
                <td></td>
                <td>
                    <asp:TextBox Visible="false" ID="txtMobile" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Event</td>
                <td colspan="2">
                    <asp:DropDownList ID="ddlEventType" runat="server" Enabled="true">
                        <asp:ListItem Value="12" Selected="True">Diwali 2017</asp:ListItem>
                        <asp:ListItem Value="2">Donation</asp:ListItem>
                        <asp:ListItem Value="5" Enabled="true">Picnic</asp:ListItem>
                        <asp:ListItem Value="42" Enabled="false">Navratri 2018</asp:ListItem>
                    </asp:DropDownList>
                </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" OnRowCommand="gvResult_RowCommand" OnSelectedIndexChanged="gvResult_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField HeaderText="id" DataField="id" Visible="false" />
                            <asp:BoundField HeaderText="Event" DataField="name" />
                            <asp:BoundField HeaderText="First Name" DataField="fname" />
                            <asp:BoundField HeaderText="Last Name" DataField="lname" />
                            <asp:HyperLinkField DataNavigateUrlFields="link" Text="Make Payment" />

                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
