AllFormFieldsControl.ascx
上传用户:husern
上传日期:2022-03-24
资源大小:534k
文件大小:6k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%@ Register Assembly="Itenso.WebUserForms.Controls" Namespace="Itenso.WebUserForms.Controls"
  2.   TagPrefix="cc1" %>
  3. <%@ Control Language="C#" ClassName="AllFormFieldsControl" %>
  4. <table width="100%">
  5.   <tr>
  6.     <td width="20%">
  7.       <asp:Label ID="Label10" runat="server" Text="WebformHeader:"></asp:Label>
  8.     </td>
  9.     <td>
  10.       <cc1:UserFormHeader ID="WebFormHeader1" runat="server" Description="Simple User Control"
  11.         Type="Test" Name="SimpleUserControlForm" />
  12.     </td>
  13.   </tr>
  14.   <tr>
  15.     <td>
  16.       <asp:Label ID="Label1" runat="server" Text="TextBox:"></asp:Label>
  17.     </td>
  18.     <td>
  19.       <cc1:TextBox ID="TextBox1" runat="server" FieldName="FirstName"></cc1:TextBox>
  20.     </td>
  21.   </tr>
  22.   <tr>
  23.     <td>
  24.       <asp:Label ID="Label2" runat="server" Text="ListBox:"></asp:Label>
  25.     </td>
  26.     <td>
  27.       <cc1:ListBox ID="ListBox1" runat="server" FieldName="ListBoxFormField1" FieldValue="Item 1,Item 2"
  28.         SelectionMode="Multiple">
  29.         <asp:ListItem Selected="True" Value="Value1">Item 1</asp:ListItem>
  30.         <asp:ListItem Selected="True" Value="Value2">Item 2</asp:ListItem>
  31.         <asp:ListItem Value="Value3">Item 3</asp:ListItem>
  32.       </cc1:ListBox>
  33.     </td>
  34.   </tr>
  35.   <tr>
  36.     <td>
  37.       <asp:Label ID="Label3" runat="server" Text="DropDownList:"></asp:Label>
  38.     </td>
  39.     <td>
  40.       <cc1:DropDownList ID="DropDownList1" runat="server" FieldName="DropDownFormField1">
  41.         <asp:ListItem Selected="True" Value="Value1">Item 1</asp:ListItem>
  42.         <asp:ListItem Value="Value2">Item 2</asp:ListItem>
  43.         <asp:ListItem Value="Value3">Item 3</asp:ListItem>
  44.       </cc1:DropDownList>
  45.     </td>
  46.   </tr>
  47.   <tr>
  48.     <td>
  49.       <asp:Label ID="Label15" runat="server" Text="ComboBox:"></asp:Label>
  50.     </td>
  51.     <td>
  52.       <cc1:ComboBox ID="ComboBox1" runat="server" FieldName="ComboBoxField1">
  53.         <asp:ListItem Selected="True" Value="Value1">Item 1</asp:ListItem>
  54.         <asp:ListItem Value="Value2">Item 2</asp:ListItem>
  55.         <asp:ListItem Value="Value3">Item 3</asp:ListItem>
  56.       </cc1:ComboBox>
  57.     </td>
  58.   </tr>
  59.   <tr>
  60.     <td>
  61.       <asp:Label ID="Label11" runat="server" Text="LookupListBox:"></asp:Label>
  62.     </td>
  63.     <td>
  64.       <cc1:LookupListBox ID="LookupListBox1" runat="server" FieldName="LookupListBoxFormField1"
  65.         LookupName="ListBoxLookup">
  66.       </cc1:LookupListBox>
  67.     </td>
  68.   </tr>
  69.   <tr>
  70.     <td>
  71.       <asp:Label ID="Label12" runat="server" Text="LookupDropDownList:"></asp:Label>
  72.     </td>
  73.     <td>
  74.       <cc1:LookupDropDownList ID="LookupDropDownList1" runat="server" FieldName="LookupDropDownFormField1"
  75.         LookupName="DropDownListLookup">
  76.       </cc1:LookupDropDownList>
  77.     </td>
  78.   </tr>
  79.   <tr>
  80.     <td>
  81.       <asp:Label ID="Label16" runat="server" Text="LookupComboBox:"></asp:Label>
  82.     </td>
  83.     <td>
  84.       <cc1:LookupComboBox ID="LookupComboBox1" runat="server" FieldName="LookupComboBoxFormField1"
  85.         LookupName="ComboBoxLookup">
  86.       </cc1:LookupComboBox>
  87.     </td>
  88.   </tr>
  89.   <tr>
  90.     <td>
  91.       <asp:Label ID="Label4" runat="server" Text="CheckBox:"></asp:Label>
  92.     </td>
  93.     <td>
  94.       <cc1:CheckBox ID="CheckBox1" runat="server" FieldName="CheckBoxFormField1" Text="Option" />
  95.     </td>
  96.   </tr>
  97.   <tr>
  98.     <td>
  99.       <asp:Label ID="Label5" runat="server" Text="CheckBoxList:"></asp:Label>
  100.     </td>
  101.     <td>
  102.       <cc1:CheckBoxList ID="CheckBoxList1" runat="server" FieldName="CheckBoxListFormField1"
  103.         RepeatColumns="2">
  104.         <asp:ListItem Value="Value1">Option 1</asp:ListItem>
  105.         <asp:ListItem Value="Value2">Option 2</asp:ListItem>
  106.         <asp:ListItem Value="Value3">Option 3</asp:ListItem>
  107.         <asp:ListItem Value="Value4">Option 4</asp:ListItem>
  108.       </cc1:CheckBoxList>
  109.     </td>
  110.   </tr>
  111.   <tr>
  112.     <td>
  113.       <asp:Label ID="Label6" runat="server" Text="RadioButton:"></asp:Label>
  114.     </td>
  115.     <td>
  116.       <cc1:RadioButton ID="RadioButton1" runat="server" FieldName="RadioButtonFormField1"
  117.         Text="Option" />
  118.     </td>
  119.   </tr>
  120.   <tr>
  121.     <td>
  122.       <asp:Label ID="Label7" runat="server" Text="RadioButtonList:"></asp:Label>
  123.     </td>
  124.     <td>
  125.       <cc1:RadioButtonList ID="RadioButtonList1" runat="server" FieldName="RadioButtonListFormField1"
  126.         RepeatDirection="Horizontal">
  127.         <asp:ListItem Value="Value1">Option 1</asp:ListItem>
  128.         <asp:ListItem Value="Value2">Option 2</asp:ListItem>
  129.       </cc1:RadioButtonList>
  130.     </td>
  131.   </tr>
  132.   <tr>
  133.     <td>
  134.       <asp:Label ID="Label13" runat="server" Text="TimePicker:"></asp:Label>
  135.     </td>
  136.     <td>
  137.       <cc1:TimePicker ID="TimePicker1" runat="server" FieldName="TimePickerField1"></cc1:TimePicker>
  138.     </td>
  139.   </tr>
  140.   <tr>
  141.     <td>
  142.       <asp:Label ID="Label14" runat="server" Text="DatePicker:"></asp:Label>
  143.     </td>
  144.     <td>
  145.       <cc1:DatePicker ID="DatePicker1" runat="server" FieldName="DatePickerField1"></cc1:DatePicker>
  146.     </td>
  147.   </tr>
  148.   <tr>
  149.     <td>
  150.       <asp:Label ID="Label8" runat="server" Text="Calendar:"></asp:Label>
  151.     </td>
  152.     <td>
  153.       <cc1:Calendar ID="Calendar1" runat="server" FieldName="CalendarFormField1">
  154.       </cc1:Calendar>
  155.     </td>
  156.   </tr>
  157.   <tr>
  158.     <td>
  159.       <asp:Label ID="Label9" runat="server" Text="Visible Variable:"></asp:Label>
  160.     </td>
  161.     <td>
  162.       <cc1:VisibleVariable ID="Variable1" runat="server" FieldName="VisibleVariableField1"
  163.         FieldExpression="${System.CurrentDate}" FieldValue="${System.CurrentDate}">
  164.                 ${System.CurrentDate}</cc1:VisibleVariable>
  165.     </td>
  166.   </tr>
  167.   <tr>
  168.     <td>
  169.       <asp:Label ID="Label17" runat="server" Text="Hidden Variable:"></asp:Label>
  170.     </td>
  171.     <td>
  172.       <cc1:HiddenVariable ID="HiddenVariable1" runat="server" FieldName="HiddenVariableField1"
  173.         FieldExpression="${System.CurrentDate}" FieldValue="${System.CurrentDate}" />
  174.     </td>
  175.   </tr>
  176. </table>