DotNetNukeŽ AJAX Email

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AJAXUsers.ascx.vb" Inherits="DotNetNuke.Modules.AjaxUsers" %>
<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">
                        &nbsp;<asp:Button ID="btnSelect" runat="server" OnClick="btnSelect_Click" Text="Search" /></td>
                    <td valign="top">
                        &nbsp;</td>
                </tr>
            </table>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UserID"
                        GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" ShowHeader="False">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Bind("UserID") %>'
                                        CommandName="Select" Text='<%# Bind("DisplayName") %>'></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>
            &nbsp;
        </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" OnRowDeleting="GridView2_Deleting" ShowHeader="False">
                        <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>