comments_addcomment.ascx

来自「非常不错的学校在线考试分析系统」· ASCX 代码 · 共 46 行

ASCX
46
字号
<%@ Control Language="C#" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities"%>
<asp:Panel id="pnlForm" Runat="Server">
    <span class="Form_Title">Comments</span>
    <p class="Form_Description">
    Add your comments in the fields below.
    </p>

<table width="500" cellspacing="0" cellpadding="4" class="Form_Table">
<tr class="Form_SectionRow">
    <td>
      <span class="Form_SectionText">Add Comment Form</span>
    </td>
</tr>
<tr class="Form_LabelRow">
    <td>
    <span class="Form_LabelText">Subject:</span>
    <asp:RequiredFieldValidator ControlToValidate="txtTitle" Text="(required)" Runat="Server"/>
    <br>
    <asp:TextBox id="txtTitle" Columns="40" CssClass="Form_Field" Runat="Server" />
    </td>
</tr>
<tr class="Form_LabelRow">
    <td>
    <span class="Form_LabelText">Comment:</span>
    <asp:RequiredFieldValidator ControlToValidate="txtBody" Text="(required)" Runat="Server"/>
    <br>
    <community:CommentHtmlTextBox id="txtBody" Columns="50" Rows="10" Runat="Server" />
    </td>
</tr>
<tr class="Form_LabelRow">
    <td colspan="2" align="right">
    <asp:Button id="btnPreview" Text="Preview" CssClass="Form_Button" Runat="Server" />
    <asp:Button id="btnAdd" Text="Submit" CssClass="Form_Button" Runat="Server" />
    </td>
</table>
</asp:Panel>
<asp:Panel id="pnlPreview" Runat="Server">
  <community:Title id="lblPreviewTitle" CssClass="Comments_Title" Runat="Server"/>
  <p>
  <community:CommentText id="lblPreviewBody" CssClass="Comments_BriefDescription" Runat="Server"/>
  <p>
  <asp:Button id="btnContinue" Text="Continue" CssClass="Form_Button" Runat="Server" />
    
</asp:Panel>

⌨️ 快捷键说明

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