您目前尚未登陆,请选择【登陆】或【注册
首页->全站代码->MyWebPages51aspx汉化最终版>>Administration/Users.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:MyWebPages51aspx汉化最终版
当前文件:文件类型 MyWebPagesStarterKit/Administration/Users.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Users.aspx.cs" 2 Inherits="Administration_Users"%> 3<%@ MasterType VirtualPath="~/Site.master" %> 4 5<asp:Content ID="contentPane" ContentPlaceHolderID="mainContent" runat="Server"> 6 <img src="../Images/info.gif" alt="Info" onclick="window.open('../Documentation/<%=lang%>/quick_guide.html#user-management','InfoPopUp', 'height=780,width=800,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');return false;" style="height:16px;width:16px;border-width:0px;cursor:hand;" /> 7 <table width="100%"> 8 <tr runat="server" id="trMessage"> 9 <td> 10 <asp:Label ID="lblMessage" CssClass="error" runat="server"></asp:Label> 11 </td> 12 </tr> 13 <tr> 14 <td> 15 <fieldset runat="server" id="fieldset1"> 16 <legend runat="server" id="legend1"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_ChangeUser%>"></asp:Localize></legend> 17 <asp:GridView ID="gvUsers" runat="server" DataSourceID="srcUsersGrid" DataKeyNames="UserName" 18 AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" OnRowCommand="gvUsers_RowCommand" OnRowDataBound="gvUsers_RowDataBound"> 19 <Columns> 20 <asp:BoundField DataField="UserName" HeaderText="<%$ Resources:stringsRes, adm_Users_UserName%>" SortExpression="UserName"/> 21 <asp:BoundField DataField="Comment" HeaderText="<%$ Resources:stringsRes, adm_Users_Comment%>" /> 22 <asp:TemplateField HeaderText="<%$ Resources:stringsRes, adm_Users_Admin%>" ItemStyle-HorizontalAlign="left"> 23 <ItemTemplate> 24 <%#ShowAdmin((string)DataBinder.Eval(Container.DataItem, "UserName"))%> 25 </ItemTemplate> 26 </asp:TemplateField> 27 <asp:TemplateField HeaderText="<%$ Resources:stringsRes, adm_Users_LastLogin%>" ItemStyle-HorizontalAlign="left"> 28 <ItemTemplate><%# ((DateTime)DataBinder.Eval(Container.DataItem, "LastLoginDate")).ToShortDateString()%></ItemTemplate> 29 </asp:TemplateField> 30 <asp:ButtonField ButtonType="Link" CommandName="edit_details" ControlStyle-CssClass="btnEdit"/> 31 <asp:ButtonField ButtonType="Link" CommandName="delete_user" ItemStyle-Width="40px" ControlStyle-CssClass="btnDelete" /> 32 </Columns> 33 <RowStyle CssClass="odd" /> 34 <AlternatingRowStyle CssClass="even" /> 35 </asp:GridView> 36 </fieldset> 37 38 </td> 39 </tr> 40 <tr> 41 <td>&nbsp;</td> 42 </tr> 43 <tr runat="server" id="trUpdateUser"> 44 <td> 45 <fieldset runat="server" id="fieldsetEditUser"> 46 <legend runat="server" id="legendEditUser"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_ChangeUser%>"></asp:Localize></legend> 47 <asp:Table id="tblEditUser" BorderWidth="0" runat="server" OnPreRender="EditUser_PreRender" width="100%"> 48 <asp:TableRow> 49 <asp:TableCell width="100"></asp:TableCell> 50 <asp:TableCell></asp:TableCell> 51 </asp:TableRow> 52 <asp:TableRow> 53 <asp:TableCell CssClass="fieldlabel"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_UserName%>"></asp:Localize></asp:TableCell> 54 <asp:TableCell CssClass="fieldlabel" HorizontalAlign="Left"><asp:Label ID="lblUsername" runat="Server" Text="<%# SelectedUser.UserName %>"></asp:Label></asp:TableCell> 55 </asp:TableRow> 56 <asp:TableRow Height="10px"> 57 <asp:TableCell></asp:TableCell> 58 <asp:TableCell></asp:TableCell> 59 </asp:TableRow> 60 <asp:TableRow> 61 <asp:TableCell CssClass="fieldlabel"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_Email%>"></asp:Localize></asp:TableCell> 62 <asp:TableCell><asp:TextBox ID="txtEmail" runat="Server" SkinID="admin"></asp:TextBox></asp:TableCell> 63 </asp:TableRow> 64 <asp:TableRow> 65 <asp:TableCell CssClass="fieldlabel"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_Comment%>"></asp:Localize></asp:TableCell> 66 <asp:TableCell><asp:TextBox ID="txtComment" runat="Server" SkinID="admin"></asp:TextBox></asp:TableCell> 67 </asp:TableRow> 68 <asp:TableRow> 69 <asp:TableCell CssClass="fieldlabel"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_IsAdministrator%>"></asp:Localize></asp:TableCell> 70 <asp:TableCell><asp:CheckBox ID="chkAdmin" runat="Server" ></asp:Checkbox></asp:TableCell> 71 </asp:TableRow> 72 <asp:TableRow> 73 <asp:TableCell ColumnSpan="2"><asp:Button ID="btnCancel" runat="Server" Text="<%$ Resources:stringsRes, glb__Cancel%>" OnClick="btnUpdateCancel_Click" CausesValidation="false"></asp:Button>&nbsp;<asp:Button ID="btnSave" runat="Server" Text="<%$ Resources:stringsRes, glb__Save%>" OnClick="btnUpdateSave_Click" CausesValidation="false"></asp:Button></asp:TableCell> 74 </asp:TableRow> 75 </asp:Table> 76 </fieldset> 77 </td> 78 </tr> 79 <tr runat="server" id="trCreateUser"> 80 <td> 81 <fieldset><legend><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Users_CreateUser%>"></asp:Localize>&nbsp;</legend> 82 <Table border="0" cellpadding="0" cellspacing="0" width="100%"> 83 <tr> 84 <td height="20"></td> 85 </tr> 86 <tr> 87 <td> 88 <% // In order to have designer WYSIWYG support, remote the attributes refering to Resources %> 89 <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 90 MembershipProvider="CustomXmlMembershipProvider" 91 LoginCreatedUser="false" 92 EnableTheming="true" OnCreatedUser="CreateUserWizard1_Done" 93 RequireEmail="true" CompleteSuccessTextStyle-Width="100%" 94 UserNameRequiredErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_UserNameRequired%>" 95 PasswordRequiredErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_PasswordRequired%>" 96 ConfirmPasswordRequiredErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_ConfirmPasswordRequired%>" 97 EmailRequiredErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_EmailRequired%>" 98 ConfirmPasswordCompareErrorMessage="<%$ Resources:stringsRes,ctl_CreateUserWizard_ComparePassword%>" 99 DuplicateUserNameErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_DuplicateUserName%>" 100 UserNameLabelText="<%$ Resources:stringsRes, ctl_CreateUserWizard_UserName%>" 101 PasswordLabelText="<%$ Resources:stringsRes, ctl_CreateUserWizard_Password%>" 102 ConfirmPasswordLabelText="<%$ Resources:stringsRes, ctl_CreateUserWizard_ConfirmPassword%>" 103 EmailLabelText="<%$ Resources:stringsRes, ctl_CreateUserWizard_Email%>" 104 CreateUserButtonText="<%$ Resources:stringsRes, ctl_CreateUserWizard_CreateUser%>" 105 ToolTip="<%$ Resources:stringsRes, ctl_CreateUserWizard_CreateUser%>" 106 DuplicateEmailErrorMessage="<%$ Resources:stringsRes, ctl_CreateUserWizard_DuplicateEmail%>" 107 ContinueDestinationPageUrl="~/Administration/Users.aspx" 108 > 109 <TextBoxStyle CssClass="textboxAdmin" /> 110 <CancelButtonStyle CssClass="button"/> 111 <CreateUserButtonStyle CssClass="button" /> 112 <ContinueButtonStyle CssClass="button" /> 113 <FinishCompleteButtonStyle CssClass="button" /> 114 <StepStyle /> 115 <TextBoxStyle /> 116 <WizardSteps> 117 <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" Title=""> 118 </asp:CreateUserWizardStep> 119 <asp:CompleteWizardStep runat="server" ID="CompleteWizardStep1" > 120 <ContentTemplate> 121 <table width="100%" border="0"> 122 <tr> 123 <td align="center" ><asp:Localize ID="Localize1" runat="server" Text=" <%$ Resources:stringsRes, ctl_CreateUserWizard_CreateUserSucessful %>"></asp:Localize></td> 124 </tr> 125 <tr> 126 <td> 127 <asp:Button id="ContinueButton" commandname="Continue" runat="server" Text="<%$ Resources:stringsRes, ctl_CreateUserWizard_CreateUserButtonDone %>" ValidationGroup="CreateUserWizard"/> 128 </td> 129 </tr> 130 </table> 131 </ContentTemplate> 132 </asp:CompleteWizardStep> 133 </WizardSteps> 134 </asp:CreateUserWizard> 135 </td> 136 </tr> 137 </Table> 138 </fieldset> 139 </td> 140 </tr> 141 <tr runat="server" id="trSendUserPassword"> 142 <td> 143 <fieldset><legend><asp:Label ID="lblApplicationName" runat="server" 144 Text="<%$ Resources:StringsRes, ctl_RecoverPassword_Legend %>" /> &nbsp;</legend> 145 <Table border="0" cellpadding="0" cellspacing="0" width="100%"> 146 <tr> 147 <td height="20"></td> 148 </tr> 149 <tr> 150 <td> 151 <asp:Wizard ID="RecoverPasswordWizard" runat="server" EnableTheming="true" OnNextButtonClick="RecoverPasswordWizard_OnNext" 152 OnFinishButtonClick="RecoverPasswordWizard_OnFinish" DisplaySideBar="false" NavigationButtonStyle-CssClass="" FinishCompleteButtonText="<%$ Resources:StringsRes, ctl_RecoverPassword_FinishButton %>" > 153 <CancelButtonStyle CssClass="button"/> 154 <NavigationButtonStyle CssClass="button" /> 155 <FinishCompleteButtonStyle CssClass="button" /> 156 <WizardSteps> 157 <asp:WizardStep runat="server" Title="Username" ID="stpUsername"> 158 <asp:ValidationSummary DisplayMode="List" EnableClientScript="true" EnableTheming="True" ID="ValidationSummary1" runat="server"> 159 </asp:ValidationSummary> 160 <asp:TextBox ID="txtUsername" runat="server" ValidationGroup="RecoverPasswordWizard"></asp:TextBox> 161 <asp:RequiredFieldValidator Display="None" ID="RequiredUsernameValidator" runat="server" ErrorMessage="<%$ Resources:StringsRes, ctl_CreateUserWizard_PasswordRequired %>" ControlToValidate="txtUsername"></asp:RequiredFieldValidator> 162 </asp:WizardStep> 163 <asp:WizardStep StepType="Complete"><asp:Label ID="lblResult" runat="Server"></asp:Label></asp:WizardStep> 164 </WizardSteps> 165 </asp:Wizard> 166 </td> 167 </tr> 168 </table> 169 </fieldset> 170 </td> 171 </tr> 172 </table> 173 <asp:ObjectDataSource runat="server" ID="srcUsersGrid" TypeName="System.Web.Security.Membership" SelectMethod="GetAllUsers"></asp:ObjectDataSource> 174</asp:Content> 175
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:MyWebPages51aspx汉化最终版