知识大全 ASP.NET入门教程 11.2 Wrox United中角色的介绍[3]

Posted

篇首语:出门莫恨无人随,书中车马多如簇。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 ASP.NET入门教程 11.2 Wrox United中角色的介绍[3]相关的知识,希望对你有一定的参考价值。

ASP.NET入门教程 11.2 Wrox United中角色的介绍[3]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

    ( )保持在Source View中 并且输入如下的代码行 这将确保无论是谁访问该站点 都可以显示一些可视的内容

 

<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 most of which

            you already know from the email we regularly send out One that hasn t made it to

            the email yet is the proposed end of season BBQ a great excuse for a summer party

            (not that we really need an excuse) This will be open to all members of the public

            and tickets will be heavily discounted for fan club members as a thank you for all

            of the great support you ve given the club The date hasn t yet been 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>

      <asp:RoleGroup Roles= Administrator Owner Manager Reporter >

        <ContentTemplate>

          To see the Fan Club features you need to be a member As special users you get free

          entry to the fan club talk to the admin people to get set up

        </ContentTemplate>

      </asp:RoleGroup>

    </RoleGroups>

    <AnonymousTemplate>

      <p>

        The fan club provides a way for you to show your devotion to the club and gains

        you exclusive privileges You get discounts on match tickets and at the club store

        as well as having the opportunity to meet up with like minded fans

      </p>

      <p>

        Membership to the Fan Club can be bought from the <a href= Shop aspx >Club Shop</a>

        Once membership has been received we ll enable your account as a Fan Club Member

      </p>

    </AnonymousTemplate>

  </asp:LoginView>

cha138/Article/program/net/201311/14496

相关参考

知识大全 ASP.NET入门教程 11.2 Wrox United中角色的介绍[4]

ASP.NET入门教程11.2WroxUnited中角色的介绍[4]  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快

知识大全 ASP.NET入门教程 11.2 Wrox United中角色的介绍[1]

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

知识大全 ASP.NET入门教程 10.5.4 Wrox United[1]

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

知识大全 ASP.NET入门教程 10.5.4 Wrox United[2]

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

知识大全 ASP.NET入门教程 10.5.4 Wrox United[3]

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

知识大全 ASP.NET入门教程 1.5 Wrox United应用程序

ASP.NET入门教程1.5WroxUnited应用程序  以下文字资料是由(全榜网网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)小编为大家搜集整理后发布的内容,让我们赶快一起来