skin-edituserinfo.ascx

来自「微软的.NET论坛的源代码(COOL!!!)」· ASCX 代码 · 共 325 行 · 第 1/2 页

ASCX
325
字号
<%@ Control Language="C#" %>
<%@ Import Namespace="AspNetForums.Components" %>
<%@ Import Namespace="AspNetForums.Controls" %>
<%@ Register TagPrefix="AspNetForums" Namespace="AspNetForums.Controls" Assembly="AspNetForums" %>
<table class="tableBorder" cellSpacing="1" cellPadding="0" width="100%">
  <tr>
    <th class="tableHeaderText" align="left" height="20">
      &nbsp; Edit User Information for:
      <asp:label id="Username" runat="server"></asp:label></th></tr>
  <tr>
    <td class="forumHeaderBackgroundAlternate" align="left" height="20"><span class="forumTitle">&nbsp;Required Information </span></td>
  </tr>
  <tr>
    <td class="forumRow">
      <table cellSpacing="0" cellPadding="2" border="0">
        <tr>
          <td colSpan="4">&nbsp;</td>
        </tr>
        <!-- Email -->
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <td noWrap align="right"><span class="normalTextSmallBold">Email: </span></td>
          <td align="left"><asp:textbox id="Email" runat="server" columns="35"></asp:textbox></td>
          <td align="left"><asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" ErrorMessage="You must supply a valid email address." ControlToValidate="Email" CssClass="validationWarningSmall" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator></td>
        </tr>
        <tr>
          <td colSpan="2"></td>
          <td vAlign="top" height="20"><span class="normalTextSmaller">&nbsp;Your email 
            address is not publicly available.</span></td>
          <td vAlign="top"><asp:requiredfieldvalidator id="ValidateEmail" runat="server" ErrorMessage="You must supply an email address." ControlToValidate="Email" CssClass="validationWarningSmall"></asp:requiredfieldvalidator></td>
        </tr>
        <!-- Timezone -->
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <td noWrap align="right"><span class="normalTextSmallBold">Timezone: </span></td>
          <td align="left"><asp:dropdownlist id="Timezone" runat="server">
              <asp:listitem Text="Hawaii (GMT -10)" Value="-10" />
              <asp:listitem Text="Alaska (GMT -9)" Value="-9" />
              <asp:listitem Text="Pacific Time (GMT -8)" Value="-8" />
              <asp:listitem Text="Mountain Time (GMT -7)" Value="-7" />
              <asp:listitem Text="Central Time (GMT -6)" Value="-6" />
              <asp:listitem Text="Eastern Time (GMT -5)" Value="-5" />
              <asp:listitem Text="Atlantic Time (GMT -4)" Value="-4" />
              <asp:listitem Text="Brasilia Time (GMT -3)" Value="-3" />
              <asp:listitem Text="Greenwich Mean Time (GMT +0)" Value="0" />
              <asp:listitem Text="Central Europe Time (GMT +1)" Value="1" />
              <asp:listitem Text="Eastern Europe Time (GMT +2)" Value="2" />
              <asp:listitem Text="Middle Eastern Time (GMT +3)" Value="3" />
              <asp:listitem Text="Abu Dhabi Time (GMT +4)" Value="4" />
              <asp:listitem Text="Indian Time (GMT +5)" Value="5" />
              <asp:listitem Text="Eastern China Time (GMT +8)" Value="8" />
              <asp:listitem Text="Japan Time (GMT +9)" Value="9" />
              <asp:listitem Text="Australian Time (GMT +10)" Value="10" />
              <asp:listitem Text="Pacific Rim Time (GMT +11)" Value="11" />
              <asp:listitem Text="New Zealand Time (GMT +12)" Value="12" />
            </asp:dropdownlist></td>
        </tr>
        <tr>
          <td colSpan="2"></td>
          <td vAlign="top" height="20"><span class="normalTextSmaller">&nbsp;Date/Times will 
            be displayed for your timezone.</span></td>
        </tr>
        <!-- Date Format -->
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <td noWrap align="right"><span class="normalTextSmallBold">Date Format: </span></td>
          <td align="left"><asp:dropdownlist id="DateFormat" runat="server">
              <asp:listitem Text="Day Month Year (1 May 2002)" Value="dd MMM yyyy" />
              <asp:listitem Text="Month-Day-Year (5-1-2002)" Value="MM-dd-yyyy" />
              <asp:listitem Text="Day-Month-Year (1-5-2002)" Value="dd-MM-yyyy" />
              <asp:listitem Text="Month/Day/Year (5/1/2002)" Value="MM/dd/yyyy" />
              <asp:listitem Text="Day/Month/Year" Value="dd/MM/yyyy" />
            </asp:dropdownlist></td>
        <tr>
          <td colSpan="2"></td>
          <td vAlign="top" height="20"><span class="normalTextSmaller">&nbsp;Date/Times will 
            be displayed in this format.</span></td>
        </tr>
        <!-- Change Password-->
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <td noWrap align="right"></td>
          <td align="left"><a Class="linkSmallBold" href="<% =Globals.UrlChangePassword %>">Change Password</a></td>
          <td align="left"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="forumHeaderBackgroundAlternate" align="left" height="20"><span class="forumTitle">&nbsp;About you (Optional) </span></td>
  </tr>
  <tr>
    <td class="forumRow">
      <table cellSpacing="0" cellPadding="3" width="100%" border="0">
        <tr>
          <td><span class="normalTextSmaller">&nbsp;</span></td>
        </tr>
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <!-- Occupation -->
          <td align="right"><span class="normalTextSmallBold">Occupation: </span></td>
          <td align="left"><asp:textbox id="Occupation" runat="server" columns="35"></asp:textbox></td>
          <td align="left"></td>
          <!-- Location -->
          <td noWrap align="right"><span class="normalTextSmallBold">Location: </span></td>
          <td noWrap align="left"><asp:textbox id="Location" runat="server" columns="35"></asp:textbox></td>
        </tr>
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <!-- Interests -->
          <td align="right"><span class="normalTextSmallBold">Interests: </span></td>
          <td align="left"><asp:textbox id="Interests" runat="server" columns="35"></asp:textbox></td>
          <td align="left"></td>
          <!-- MSN IM -->
          <td noWrap align="right"><span class="normalTextSmallBold">MSN IM: </span></td>
          <td noWrap align="left"><asp:textbox id="MsnIm" runat="server" columns="35"></asp:textbox></td>
        </tr>
        <tr>
          <!-- AIM -->
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <td align="right"><span class="normalTextSmallBold">AIM: </span></td>
          <td align="left"><asp:textbox id="AolIm" runat="server" columns="35"></asp:textbox></td>
          <td align="left"></td>
          <!-- Yahhoo Im -->
          <td noWrap align="right"><span class="normalTextSmallBold">Yahoo IM: </span></td>
          <td noWrap align="left"><asp:textbox id="YahooIm" runat="server" columns="35"></asp:textbox></td>
        </tr>
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;
          </td>
          <!-- ICQ -->
          <td align="right"><span class="normalTextSmallBold">ICQ: </span></td>
          <td align="left"><asp:textbox id="Icq" runat="server" columns="35"></asp:textbox></td>
          <td align="left"></td>
          <!-- Web site -->
          <td noWrap align="right"><span class="normalTextSmallBold">Website: </span></td>
          <td noWrap align="left"><asp:textbox id="Website" runat="server" columns="35"></asp:textbox><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Must be valid URL." ControlToValidate="Website" CssClass="validationWarningSmall" ValidationExpression="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:regularexpressionvalidator></td>
        </tr>
        <tr>
          <td colSpan="4">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <TR>
    <td class="forumHeaderBackgroundAlternate" align="left" height="20"><span class="forumTitle">&nbsp;Display Options </span></td>
  </TR>
  <tr>
    <td class="forumRow">
      <table cellSpacing="0" cellPadding="3" border="0">
        <tr>
          <td><span class="normalTextSmaller">&nbsp;</span></td>
        </tr>
        <!-- Fake Email -->
        <tr>
          <td class="forumRow" noWrap width="19">&nbsp; &nbsp;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?