You are on page 1of 4

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="account.aspx.cs" MasterP ageFile="~/cdrmain.

master" Inherits="account" Title="Account"%> <asp:Content ID="Content1" ContentPlaceHolderID="CDRContains" Runat="Server"> <table border="0"> <%--<tr> <td align="left" style="width: 150px">Username(<asp:Label ID="lblu" Text="* " ForeColor="Red" runat="server"></asp:Label>)</td> <td align="left"><asp:TextBox ID="txtusername" runat="server" Width="150px" ></asp:TextBox></td> <td style="width: 127px"><asp:Label ID="label_Username" runat="server" Widt h="100px" Text="" ForeColor="Red"></asp:Label></td> </tr> --%> <tr> <td> <div style="width:450px">Username(<asp:Label ID="lblu" Text="*" ForeColo r="Red" runat="server"></asp:Label>):&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtusern ame" runat="server" Width="150px"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="label _Username" runat="server" Width="100px" Text="" ForeColor="Red"></asp:Label></di v> <div style="width:450px">Password(<asp:Label ID="lblp" Text="*" ForeColo r="Red" runat="server"></asp:Label>):&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="tx tpassword" runat="server" Width="150px" Font-Strikeout="False" Font-Underline="F alse" TextMode="Password"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="label_Passwor d" runat="server" Width="100px" Text="" ForeColor="Red"></asp:Label></div> <div style="width:450px">Permission&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;<asp:DropDownList runat="server" ID="drpPermission"></asp:DropDownList>&nbs p;&nbsp;<asp:Label ID="label_Permission" runat="server" Width="100px" Text="" Fo reColor="Red"></asp:Label></div> </td> </tr> <%--<tr> <td align="left" style="width: 150px">Password(<asp:Label ID="lblp" Text="* " ForeColor="Red" runat="server"></asp:Label>)</td> <td align="left"><asp:TextBox ID="txtpassword" runat="server" Width="150px" Font-Strikeout="False" Font-Underline="False" TextMode="Password"></asp:TextBox ></td> <td style="width: 127px"><asp:Label ID="label_Password" runat="server" Widt h="100px" Text="" ForeColor="Red"></asp:Label></td> </tr> --%> <%--<tr> <td align="left" style="width: 150px">Permission</td> <td align="left"> <asp:DropDownList runat="server" ID="drpPermission"> </asp:DropDownList> </td> <td style="width: 127px"><asp:Label ID="label_Permission" runat="server" W idth="100px" Text="" ForeColor="Red"></asp:Label></td> </tr>--%> <tr></tr> <tr></tr> <tr> <td colspan="3"> <fieldset> <legend>Extension Monitor</legend> <table> <tr> <td style="height: 13px; width: 150px;">Extension available</td>

<td style="width: 41px; height: 13px"></td> <td style="height: 13px; width: 150px;">Extension assignment</td > </tr> <tr> <td style="width: 150px"><asp:ListBox ID="ListBox1" runat="serve r" Height="300px" Width="100%"></asp:ListBox></td> <td style="width: 41px"> <asp:Button ID="btnAddL" runat="server" Text=">" Width="40px " OnClick="btnAddL_Click" /> <asp:Button ID="btnAddAll" runat="server" Text=">>" Width="4 0px" OnClick="btnAddAll_Click" OnClientClick="return confirm('Are you sure add a ll?');"/> <br /> <asp:Button ID="btnDel" runat="server" Text="<" Width="40px" O nClick="btnDel_Click" /> <asp:Button ID="btnDelAll" runat="server" Text="<<" Width="40 px" OnClick="btnDelAll_Click" OnClientClick="return confirm('Are you sure remove all?');" /> </td> <td style="width: 150px"><asp:ListBox ID="ListBox2" runat="serve r" Height="300px" Width="100%"></asp:ListBox></td> </tr> <tr> <td style="height: 19px; width: 150px;"></td> <td style="height: 19px"></td> <td style="height: 19px"><asp:Label ID="lblExt" runat="server" Text= "" ForeColor="Red"></asp:Label></td> </tr> </table> </fieldset> </td> </tr> <tr> <td colspan="1"><asp:Button ID="btnthem" runat="server" Text="Add" OnClick="b tnAdd_Click"/></td> <td colspan="1"><asp:Button ID="btnsua" runat="server" Text="Update" OnClick= "btnUpdate_Click" /></td> </tr> </table> <table class="adminheading"> <tbody> <tr><td>User List</td> <td align="right" style="height: 5px"></td> </tr> </tbody> </table> <table class="adminlist"> <tbody runat="server" id="tbodyGrid" visible="true"> <tr> <td style="width: 951px"> <asp:GridView ID="GridView2" runat="server" CellPadding="3" GridLines="Vertical" Width="100%" Font-Underline="False" BackColor="SteelBlue" BorderColor="#9 99999" OnRowCommand="GridView2_RowCommand" OnRowDeleting="GridView2_RowDelete" O nRowUpdating="GridView2_RowUpdate" BorderStyle="None" BorderWidth="1px" AllowPaging="True" Page Size="25" OnPageIndexChanging="GridView2_PageIndexChanging"

DataKeyNames="useraccount" AutoGenerateColumns="False"> <FooterStyle BackColor="#CCCCCC" ForeColor="Black" /> <RowStyle BackColor="#EEEEEE" ForeColor="Black" /> <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" F oreColor="White" /> <PagerStyle BackColor="#999999" ForeColor="Black" Horizo ntalAlign="Center" /> <HeaderStyle BackColor="#336699" Font-Bold="True" ForeCo lor="#000084" /> <AlternatingRowStyle BackColor="Gainsboro" /> <Columns> <asp:BoundField DataField="useraccount" HeaderTe xt="Username"> <ItemStyle Width="70px" /> </asp:BoundField> <asp:BoundField DataField="pass" HeaderText="Pas sword"> <ItemStyle Width="50px" /> </asp:BoundField> <asp:BoundField DataField="permission" HeaderTex t="Permission"> <ItemStyle Width="50px" /> </asp:BoundField> <asp:TemplateField> <ItemTemplate> <asp:Button ID="UpdateButton" runat="ser ver" BorderWidth="0" CommandName="Update" CommandArgument="<%#((GridViewRow)Cont ainer).RowIndex %>" Text="edit" /> </ItemTemplate> <HeaderTemplate> <asp:Label ID="update" Text="Update" run at="server"></asp:Label> </HeaderTemplate> <ItemStyle HorizontalAlign="Left" Width="15p x" /> </asp:TemplateField> </Columns> <PagerSettings Mode="NumericFirstLast" /> </asp:GridView> </td> </tr> </tbody> <tbody runat="server" id="tbodyReport" visible="false"> <tr> <td style="width: 951px"> </td> </tr> </tbody> <tbody runat="server" id="bodyNoRecord" visible="false"> <tr style="width: 300"> <td style="text-align: center; width: 951px;"> There are no records. </td> </tr>

</tbody> </table> </asp:Content>

You might also like