使用C#将数据从Sql Server随机显示到aspx页中 [英] Displaying Data randomly from Sql Server into aspx page using C#

查看:62
本文介绍了使用C#将数据从Sql Server随机显示到aspx页中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将Sql Server 2008中的数据逐个显示到一个随机获取的网页中.我正在为智能教程系统开发教学计划器.我的网页看起来像这样



123 + 123 =
1)246
2)234
3)456


问题是"123 + 123 =. 1),2),3)是我保存在单选按钮列表中的答案.单击按钮后,将从数据库中随机获取问题和答案,并显示在单选按钮列表中.请帮我.谢谢...

I need to display data from Sql Server 2008 into an webpage one by one which is fetched randomly. I am developing an instructional planner for an intelligent tutorial system. My webpage looks like this



123+123=
1)246
2)234
3)456


"123+123=" is the question. 1),2),3) are the answers which i kept in the radio button list. On clicking a button the question and answer from the database is fetched randomly and displayed in the radio button list.Plz help me out. Thank You...

推荐答案

请参阅选择从数据库表中随机选择行 [ ^ ],
如何检索随机记录 [
see Selecting Random Selection Of Rows From A Database Table[^],
How to retrieve a random record[^]


这篇关于使用C#将数据从Sql Server随机显示到aspx页中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆