自动组卷
在做一个自动组卷程序。最后一步搞不出来了。随机选取就可以了。选择难度、题型、范围后在一个新页面上直接生成试卷信息。谢谢大侠:我的邮箱360855758@qq.com选择题【10】道 难度:难【10】% 易【40】 % 中【50】 % 范围:【2】到【8】章 分值【40】
判断题【10】道 难度:难【20】% 易【30】 % 中【50】 % 范围:【3】到【6】章 分值【60】
生成 --------------------编程问答-------------------- repeater就可以了
照这个格式改
<asp:Repeater ID="rpQuestion" runat="server">--------------------编程问答-------------------- --------------------编程问答-------------------- 如果分值不一样,就要用那个什么贪婪算法来处理分值,组合多少题 --------------------编程问答-------------------- 这有的,自己下了抄。
<ItemTemplate>
<div id="content<%# Container.ItemIndex %>">
<%# (Container.ItemIndex + 1) % 2 != 0 ? "<Table><Tr><TD style='text-align: left;width:400px;'>" : ""%>
第<%# Container.ItemIndex + 1%>题:<%# Eval("Q_Name")%>:<span id="span<%# Container.ItemIndex %>"
style="color: Red;">未平!</span><asp:HiddenField ID="HiddenValue" runat="server" Value='<%# Eval("Q_Value") %>' />
<asp:RadioButtonList ID="rbtList_Question" runat="server">
</asp:RadioButtonList>
<%# (Container.ItemIndex + 1) % 2 != 0 ? "</TD><TD style='text-align: left;width:400px;'>" : ""%>
<%# (Container.ItemIndex + 1) % 2 == 0 ? "</TD></TR></TABLE><br />" : ""%>
</div>
</ItemTemplate>
</asp:Repeater>
补充:.NET技术 , ASP.NET