當前位置:首頁 » 學校課程 » 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