<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Adm_EditUsers.aspx.cs" Inherits="Adm_EditUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="UsersName" 
        DataSourceID="LinqDtsUsers" ForeColor="#333333" GridLines="None" PageSize="5" 
        Width="98%">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:CommandField ShowEditButton="True" />
            <asp:BoundField DataField="UserID" HeaderText="کد" InsertVisible="False" 
                SortExpression="UserID" />
            <asp:BoundField DataField="UsersName" HeaderText="نام کاربری" ReadOnly="True" 
                SortExpression="UsersName" />
            <asp:BoundField DataField="UsersPwa" HeaderText="رمزعبور" 
                SortExpression="UsersPwa" />
            <asp:BoundField DataField="NameOfUser" HeaderText="نام" 
                SortExpression="NameOfUser" />
            <asp:BoundField DataField="SnameOfUser" HeaderText="نام خانوادگی" 
                SortExpression="SnameOfUser" />
            <asp:BoundField DataField="UserTypeID" HeaderText="نوع کاربر" 
                SortExpression="UserTypeID" />
            <asp:BoundField DataField="UserEmail" HeaderText="ایمیل" 
                SortExpression="UserEmail" />
            <asp:BoundField DataField="UserMobilePhone" HeaderText="موبایل/تلفن" 
                SortExpression="UserMobilePhone" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDtsUsers" runat="server" 
        ContextTypeName="Lsc_EVotingDataContext" EnableDelete="True" 
        EnableUpdate="True" EntityTypeName="" TableName="tblUsers" 
        Where="UserTypeID &gt; @UserTypeID">
        <WhereParameters>
            <asp:Parameter DefaultValue="1" Name="UserTypeID" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>
</asp:Content>

