<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AJAXUsers.ascx.cs" Inherits="DotNetNuke.Modules.AjaxUsersC" %>
<table>
<tr>
<td valign="top">
<table>
<tr>
<td valign="top">
<asp:DropDownList ID="ddlSearchType" runat="server">
<asp:ListItem Selected="True">Email</asp:ListItem>
<asp:ListItem Value="FirstName">First Name</asp:ListItem>
<asp:ListItem Value="LastName">Last Name</asp:ListItem>
</asp:DropDownList></td>
<td valign="top">
<asp:TextBox ID="txtUser" runat="server"></asp:TextBox></td>
<td valign="top">
<asp:Button ID="btnSelect" runat="server" Text="Search" OnClick="btnSelect_Click" /></td>
<td valign="top">
</td>
</tr>
</table>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UserID"
OnSelectedIndexChanged="GridView1_SelectedIndexChanged" GridLines="None" ShowHeader="False">
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"
Text='<%# Bind("DisplayName") %>' CommandArgument='<%# Bind("UserID") %>'></asp:LinkButton>
<asp:Label ID="lblEmail" runat="server" Text='<%# Bind("Email") %>' Visible="false"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Label
ID="lblNotFound" runat="server" Text="User is not found" Visible="False"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnSelect" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</td>
<td>
</td>
<td valign="top">
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="UserID" GridLines="None" ShowHeader="False" OnRowDeleting="GridView2_Deleting">
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="False" CommandArgument='<%# Bind("UserID") %>'
CommandName="Delete" Text="Delete"></asp:LinkButton> <asp:Label ID="lblname" runat="server"
Text='<%# Bind("UserName") %>'></asp:Label>
<asp:Label ID="lblEmail2" runat="server" Text='<%# Bind("UserEmail") %>' Visible="false"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>