View Code for Web/WebControls/EditSemester.ascx

Source code for the file Web/WebControls/EditSemester.ascx is shown below.

<%@ Control CodeBehind="EditSemester.ascx.cs" Inherits="QuantumConcepts.CodeGenerator.Sample.Web.WebControls.EditSemester" Language="C#" %>
<%@ Register TagPrefix="Common" TagName="TabularPanel" Src="~/WebControls/TabularPanel.ascx" %>
<%@ Register TagPrefix="Common" TagName="TabularPanelRow" Src="~/WebControls/TabularPanelRow.ascx" %>
<%@ Register TagPrefix="Common" TagName="TabularPanelField" Src="~/WebControls/TabularPanelField.ascx" %>

<Common:TabularPanel runat="server">
  <Rows>
    <Common:TabularPanelRow>
      <Fields>
        <Common:TabularPanelField>
          <Label>Begin:</Label>
          <Value>
            <asp:Calendar ID="BeginField" runat="server" />
          </Value>
        </Common:TabularPanelField>
      </Fields>
    </Common:TabularPanelRow>
    <Common:TabularPanelRow>
      <Fields>
        <Common:TabularPanelField>
          <Label>End:</Label>
          <Value>
            <asp:Calendar ID="EndField" runat="server" />
          </Value>
        </Common:TabularPanelField>
      </Fields>
    </Common:TabularPanelRow>
    <Common:TabularPanelRow>
      <Fields>
        <Common:TabularPanelField>
          <Label>Name:</Label>
          <Value>
            <asp:TextBox ID="NameField" runat="server" />
            <Common:FieldValidator ID="NameValidator" runat="server" TargetControlID="NameField" FieldName="Name" Required="true" />
          </Value>
        </Common:TabularPanelField>
      </Fields>
    </Common:TabularPanelRow>
  </Rows>
  <Actions>
    <asp:LinkButton ID="SaveButton" runat="server" Text="Save" CssClass="Action Accept" OnClick="SaveButton_Click" />
    <asp:LinkButton ID="CancelButton" runat="server" Text="Cancel" CssClass="Action Cancel" OnClick="CancelButton_Click" />
  </Actions>
</Common:TabularPanel>