如何在FineUI中动态添加textbox
1个回答
推荐于2016-03-27
展开全部
<f:TabStrip ID="TabStrip1" Width="850px" Height="350px" ShowBorder="true" TabPosition="Top" EnableFrame="true" EnableTabCloseMenu="false" EnableTitleBackgroundColor="true" ActiveTabIndex="0" runat="server">
<Tabs>
<f:Tab ID="TabChoice" Title="选择题" BodyPadding="5px" Layout="Fit"
runat="server">
<Items>
<f:SimpleForm ID="SFChoice" ShowBorder="false"
ShowHeader="false" Title="SFChoice" LabelWidth="120px" runat="server">
<Items>
<f:TextBox ID="tbxQuestion" runat="server" Label="题目" Text="" Required="true"></f:TextBox>
<f:TextBox ID="tbxItemA" Label="选项A" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemB" Label="选项B" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemC" Label="选项C" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemD" Label="选项D" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:Button ID="btAddChoiceItem" runat="server" OnClick="BtAddChoiceItem_Click" Text="点击添加新选项"></f:Button>
<f:Button ID="btAddChoice" Text="确定添加该题" OnClick="BtAddChoice_Click" runat="server">
</f:Button>
</Items>
</f:SimpleForm>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
<Tabs>
<f:Tab ID="TabChoice" Title="选择题" BodyPadding="5px" Layout="Fit"
runat="server">
<Items>
<f:SimpleForm ID="SFChoice" ShowBorder="false"
ShowHeader="false" Title="SFChoice" LabelWidth="120px" runat="server">
<Items>
<f:TextBox ID="tbxQuestion" runat="server" Label="题目" Text="" Required="true"></f:TextBox>
<f:TextBox ID="tbxItemA" Label="选项A" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemB" Label="选项B" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemC" Label="选项C" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="tbxItemD" Label="选项D" runat="server" Required="True" ShowRedStar="true">
</f:TextBox>
<f:Button ID="btAddChoiceItem" runat="server" OnClick="BtAddChoiceItem_Click" Text="点击添加新选项"></f:Button>
<f:Button ID="btAddChoice" Text="确定添加该题" OnClick="BtAddChoice_Click" runat="server">
</f:Button>
</Items>
</f:SimpleForm>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询