知识大全 11.6.1 Wrox United中的配置文件[2]

Posted

篇首语:顾虑太多难以起步,背负太多难走远路。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 11.6.1 Wrox United中的配置文件[2]相关的知识,希望对你有一定的参考价值。

11.6.1 Wrox United中的配置文件[2]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

    ( )下一步是添加一些代码到FanClub aspx页面 从而用户可以存储新的配置文件属性 并且查看或编辑已有的属性 打开该页面 并且添加如下突出显示的代码行 有许多代码需要添加 但如同您将看到的那样 将要做的所有事情只是添加控件到页面 并且在表中布置它们

 

<asp:LoginView ID= FCLoginView runat= server >

    <RoleGroups>

      <asp:RoleGroup Roles= FanClubMember >

        <ContentTemplate>

          <p>

            Wele 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= cMailing 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>

cha138/Article/program/net/201311/15701

相关参考

知识大全 11.6.1 Wrox United中的配置文件[3]

11.6.1WroxUnited中的配置文件[3]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!&

知识大全 11.6.1 Wrox United中的配置文件[5]

11.6.1WroxUnited中的配置文件[5]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!&

知识大全 11.6.1 Wrox United中的配置文件[4]

11.6.1WroxUnited中的配置文件[4]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!&

知识大全 ASP.NET入门教程 5.2 Wrox United中的主题[1]

ASP.NET入门教程5.2WroxUnited中的主题[1]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来

知识大全 ASP.NET入门教程 5.2 Wrox United中的主题[2]

ASP.NET入门教程5.2WroxUnited中的主题[2]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来

知识大全 ASP.NET入门教程 5.2 Wrox United中的主题[3]

ASP.NET入门教程5.2WroxUnited中的主题[3]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来

知识大全 10.6.3 Wrox United News用户控件[3]

10.6.3WroxUnitedNews用户控件[3]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧

知识大全 10.6.3 Wrox United News用户控件[2]

10.6.3WroxUnitedNews用户控件[2]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧

知识大全 10.6.3 Wrox United News用户控件[1]

10.6.3WroxUnitedNews用户控件[1]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧