当前位置:首页 » 学校课程 » asp课程表

asp课程表

发布时间: 2020-12-19 08:56:33

㈠ asp.net,用table做一个课程表

No1:你绑定dropdownlist,也是把课程表这个表的字段学期绑定在dropdownlist。
代码例如:
string ConnString = ConfigurationSettings.AppSettings["ConnectionString"];
//创建一个SqlConnection
SqlConnection Conn = new SqlConnection( ConnString );
string SQL_Select = "select × from 课程表";
//构造一个SqlDataAdapter
SqlDataAdapter myAdapter = new SqlDataAdapter( SQL_Select, Conn);
//开始读取数据
Conn.Open();
DataSet dataSet = new DataSet();
myAdapter.Fill( dataSet,"Table1" );
Conn.Close();
//开始绑定DropDownList
//指定DropDownList使用的数据源
DropDownList1.DataSource = dataSet.Tables["Table1"].DefaultView;
//指定DropDownList使用的表里的那些字段
DropDownList1.DataTextField = "学期"; //dropdownlist的Text的字段
DropDownList1.DataValueField = "id";//dropdownlist的Value的字段
DropDownList1.DataBind();
No2:拉一个绑定表的控件。。。
把dropdownlist的Text的字段 作为参数,读取这个表,,显示,ok

㈡ ASP.net如何做一个像课程表一样可以实现编辑 保存的表格...

做这个的话用 gridview 是最方便的,既然你不用这种方法的话,那就用table里面嵌套 repeater吧!效果也很理想的

㈢ 在ASP.NET 中,一个班级的课程表该如何实现

其实实现起来有满多种的:
你也可以用DEATLIST控件还有一个REP什么也是数据绑内定控件的,
也可以用容其它架构的列表控件的,就像我现在刚做完的一个项目就是用
COOLITE的!很好看有好用,还有分页什么的;你可以试一下
你还可以用动态生成表格的方式

㈣ asp如何制作大学课程表。选择不同的班级,就会有不同的课表。有课的时候显示课程名,上课地点和教师。

使用数据库。首先利用电子表格制作一个课程表,将对应的星期、课程、老师及地点输入,在APP中调用系统日期中的星期数,对数据库中的星期这一栏进行搜索,取出对应栏的数据在界面上显示出来就可以了。

㈤ asp课程表排列代码

定义一个主键然后关联起来就可以了啊

㈥ 如何用asp+access实现课程表查询

<form name=form1 action=UserList.asp method=post target=_self>
<tbody>
<tr>
<td class=style5 height=30> 性别
<input name="sex" type="radio" value="男"> <img src="images/man.gif" width="8" height="12" hspace="1" vspace="1">
<input name="sex" type="radio" value="女" checked> <img src="images/women.gif" width="8" height="12" hspace="1" vspace="1">

年龄:
<select name=age_up>
<option value="0" selected>选择</option>
<option value=18>18</option>
<option
value=19>19</option>
<option
value=20>20</option>
<option
value=21>21</option>

</select>

<select name=age_down>
<option value="0" selected>选择</option>
<option value=18>18</option>
<option value=19>19</option>

</select>
身高:
<select
name=height_up>
<option value="0" selected>选择</option>
<option value=150>150</option>
<option
value=155>155</option>

</select>
照片
<input type=checkbox name="photo" value="yes">
<input name="submitok" type=hidden id="submitok" value="b">

</td>
</tr>
<tr>
<td class=style5 height=25>体重:
<select name=weight_up>
<option value="0" selected>选择</option>
<option
value=35>35</option>

</select>

<select
name=weight_down>
<option value="0"
selected>选择</option>
<option
value=35>35</option>
<option

<option
value=125>125</option>
</select>
公斤居住地:
<select
name=nationality
onChange=javascript:chgCountry(form1.to_city_id);>
<option value="">--请选择--</option>
<option
value="中国大陆" selected>中国大陆</option>
<option
value="香港">---香港</option>

<option value="埃及">埃及</option>
<option
value="南非">南非</option>
</select>
<select name=to_city_id>
<option value="" selected>--请选择--</option>
<option
value="北京">北京</option>
<option value="上海">上海</option>
<option value="天津">天津</option>
<option
value="重庆">重庆</option>
<option value="广东">广东</option>
<option value="广州">---广州</option>
<option
value="深圳">---深圳</option>
<option
value="珠海">---珠海</option>

</select>
<input type=image
height=29 width=93
src="images/search.gif"
value=开始搜索 border=0 name=smtSearch> </td>
</tr>
</form>
<%
function mainsql(submitok,keyname,age_up,age_down,photo2,kind,sex)'sql变量查询
dim a,sql,fstr,agekind
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag from love_main order by refresh_time desc,regtime desc,grade desc"
If submitok="a" Then'按用户名搜索
a=trim(replace(keyname,"'","''"))
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag from love_main where flag<>'0' and username like '%"&a&"%' order by refresh_time desc,regtime desc,grade desc"
Elseif submitok="b" Then
fstr="select username,birthday,sex,kind,grade,alltime,click,aboutus,photo_x,photo_d,photo_x_flag,photo_d_flag,regtime,refresh_time,flag,height_ from love_main where flag<>'0'"

'性别

fstr=fstr & "and sex='"&sex&"'"

'年龄
dim a18,a19
age_up=Clng("0"&Request("age_up"))
age_down=Clng("0"&Request("age_down"))

if age_up<>0 and age_down<>0 then
if age_up>=age_down then
a18=year(now())-age_up+1
a19=year(now())-age_down+1
fstr=fstr & "and (year(birthday)>="&a18&" and year(birthday)<="&a19&")"
else
a18=year(now())-age_up+1
a19=year(now())-age_down+1
fstr=fstr & "and (year(birthday)>="&a19&" and year(birthday)<="&a18&")"
end if
else

end if

'身高范围
dim height_up,height_down,heightall
height_up=Clng("0"&Request("height_up"))
height_down=Clng("0"&Request("height_down"))

if height_up<>0 and height_down<>0 then
if height_up>=height_down then
fstr=fstr & " and height_<="& height_up&" and height_>="& height_down
else
fstr=fstr & " and height_>="& height_up&" and height_<="& height_down
end if
elseif height_up<>0 Then
fstr=fstr & " and height_>="& height_up
elseIf height_down<>0 Then
fstr=fstr & " and height_<="& height_down

end if
'有照片
if photo2="yes" then
fstr=fstr & " and (((photo_x is not null or photo_x<>'') and photo_x_flag='1') or ((photo_d is not null or photo_d<>'') and photo_d_flag='1')) "
else
fstr=fstr
end if

'体重范围
dim weight_up,weight_down
weight_up=Clng("0"&Request("weight_up"))
weight_down=Clng("0"&Request("weight_down"))
if weight_up<>0 and weight_down<>0 then
if weight_up>=weight_down then
fstr=fstr & " and weight_<="& weight_up & " and weight_>="& weight_down
else
fstr=fstr & " and weight_>="& weight_up & " and weight_<="& weight_down
end if
elseif weight_up<>0 Then
fstr=fstr & " and weight_>="&weight_up
elseIf weight_down<>0 Then
fstr=fstr & " and weight_<="&weight_down

end if
'地区
Dim nationality
to_city_id=Replace(Trim(Request("nationality")),",","''")
if nationality<>"" then fstr=fstr & "and area='"&nationality&"'"
Dim to_city_id

to_city_id=Replace(Trim(Request("to_city_id")),",","''")
if to_city_id<>"" then fstr=fstr & "and area='"& to_city_id &"'"

'总和
fstr=fstr & " order by refresh_time desc,regtime desc,grade desc"

End if
mainsql=fstr
end function
%>
里面列表可以改过文字输入.
这样就可以查出来了.哎.累死了.

㈦ 我现在要用ASP+SQL做一个课程表模块,管理员添加课程表,学生可以查看课程表,有没高手帮忙设计下数据库

可以应用网络Hi通知我
有时间可以解决你的问题
相关的要求也可以通知我

ES:\\
交易提醒:预付定金是陷阱

㈧ asp.net c# 中怎么样在页面里显示课程表,每天的课程,并每天更新

你把从数据库中取信息的语句写到触发器中,在每天凌晨过后让它自动触发即可。

㈨ 【急】利用ASP和SQL设计“学生-课程表”数据库

select * from Student,Course,SC where Student.Sno=SC.Sno and Course.Cno=SC.Cno 这是查询三个表中的所有内容,这样就可以把三个表相关连了。 SQL的基本语法: 查询:select 字段名 from 表名 where 查询条件----例如:select * from Student where Sno=@Sno 插入:insert into 表名(字段名)values(@字段名)----例如: insert into Student(Sno,Sname,Ssex ,Sage,Sdept)values(@Sno,@Sname,@Ssex,@Sage,@Sdept) 删除:delete from 表名 where 查询条件----例如:delete from Student where Sno=@Sno 修改:update 表名 set 字段名=@字段名 where 查询条件----例如: update Student set Sno=@Sno,Sname=@Sname,Ssex=@Ssex ,Sage=@Sage,Sdept=@Sdept where Sno=@Sno 本人呢,asp自学了一点,不是很懂,我用的是asp.net的方法来做动态网站的。asp.net做的网站更好,功能更加强大。

㈩ 有谁会用ASP弄课程表,在线等

我会的亲,

热点内容
武汉大学学生会辅导员寄语 发布:2021-03-16 21:44:16 浏览:612
七年级学生作文辅导学案 发布:2021-03-16 21:42:09 浏览:1
不屑弟高考成绩 发布:2021-03-16 21:40:59 浏览:754
大学毕业证会有成绩单 发布:2021-03-16 21:40:07 浏览:756
2017信阳学院辅导员招聘名单 发布:2021-03-16 21:40:02 浏览:800
查询重庆2018中考成绩查询 发布:2021-03-16 21:39:58 浏览:21
结业考试成绩怎么查询 发布:2021-03-16 21:28:40 浏览:679
14中医医师资格笔试考试成绩查分 发布:2021-03-16 21:28:39 浏览:655
名著赏析课程标准 发布:2021-03-16 21:27:57 浏览:881
北京大学商业领袖高端培训课程 发布:2021-03-16 21:27:41 浏览:919