()下一步是添加一些代码到FanClubaspx页面从而用户可以存储新的配置文件属性并且查看或编辑已有的属性打开该页面并且添加如下突出显示的代码行有许多代码需要添加但如同您将看到的那样将要做的所有事情只是添加控件到页面并且在表中布置它们 <asp:LoginView ID=FCLoginView runat=server> <RoleGroups> <asp:RoleGroup Roles=FanClubMember> <ContentTemplate> <p> Welcome back <asp:LoginName ID=FCLoginName runat=server /> </p> <p> There are always lots of exciting things happening with the fan club set but keep your eyes on your inbox for more details </p> <h> User Settings</h> <p> Your user details are shown below</p> <asp:ChangePassword ID=ChangePassword runat=server> </asp:ChangePassword> <br /> <table border=> <tr> <td> Name:</td> <td> <asp:TextBox ID=txtName runat=server Columns= /> <asp:RequiredFieldValidator ID=rfv runat=server ControlToValidate=txtName Text=* ErrorMessage=You must enter a value for your name /> </td> </tr> <tr> <td> Address:</td> <td> <asp:TextBox ID=txtAddress runat=server Columns= Rows= TextMode=multiLine /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtAddress Text=* ErrorMessage=You must enter a value for the address /> </td> </tr> <tr> <td> City:</td> <td> <asp:TextBox ID=txtCity runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtCity Text=* ErrorMessage=You must enter a value for the city /> </td> </tr> <tr> <td> County:</td> <td> <asp:TextBox ID=txtCounty runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtCounty Text=* ErrorMessage=You must enter a value for the county /> </td> </tr> <tr> <td> Postcode:</td> <td> <asp:TextBox ID=txtPostCode runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtPostCode Text=* ErrorMessage=You must enter a value for the post code /> </td> </tr> <tr> <td> Country:</td> <td> <asp:TextBox ID=txtCountry runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtCountry Text=* ErrorMessage=You must enter a value for the country /> </td> </tr> <tr> <td> Subscribe to email updates:</td> <td> <asp:CheckBox ID=chkMailing runat=server /></td> </tr> <tr> <td> Email:<br /> </td> <td> <asp:TextBox ID=txtEmail runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtEmail Text=* ErrorMessage=You must enter a value for the email /> <asp:RegularExpressionValidator ID=rev runat=server ControlToValidate=txtEmail ValidationExpression=\w+([+]\w+)*@\w+([]\w+)*\\w+([]\w+)* Text=* ErrorMessage=Please enter a valid email address /> </td> </tr> <tr> <td> Membership Alias:</td> <td> <asp:TextBox ID=txtAlias runat=server /> <asp:RequiredFieldValidator ID=RequiredFieldValidator runat=server ControlToValidate=txtAlias Text=* ErrorMessage=You must enter a value for the membership alias /> </td> </tr> <tr> <td> Theme:</td> <td> <asp:DropDownList ID=ThemeList runat=server> <asp:ListItem Text=Default Value= /> <asp:ListItem Text=Wrox Red Value=WroxRed /> <asp:ListItem Text=Wrox Blue Value=WroxBlue /> </asp:DropDownList> </td> </tr> </table> <br /> <asp:ValidationSummary ID=vs runat=server DisplayMode=BulletList /> <br /> <asp:Button ID=btnSaveChanges runat=server OnClick=btnSaveChanges_Click Text=Save Changes /> <asp:Button ID=btnCancelChanges runat=server OnClick=btnCancelChanges_Click CausesValidation=false Text=Cancel Changes /> </ContentTemplate> </asp:RoleGroup> </RoleGroups> </asp:LoginView> [] [] [] [] [] [] |