ASP 寫的自動生成SELECT 表單的函數(shù)
更新時間:2006年06月27日 00:00:00 作者:
對于ASP高手當然沒什么用了,但是對于剛?cè)腴T的初學者和美工就有些用處了。
Function selectdo(a,d,b,c)
Response.write"<select name='"&a&"'><option>"&d&"</option>"
for i=b to c
if i<10 then
i="0"&i
end if
Response.write"<option>"&i&"</option>"
next
Response.write"</select>"
End Function
在此基礎(chǔ)上還可以擴展出更完整的SELECT表單。
Function selectdo(a,d,b,c)
Response.write"<select name='"&a&"'><option>"&d&"</option>"
for i=b to c
if i<10 then
i="0"&i
end if
Response.write"<option>"&i&"</option>"
next
Response.write"</select>"
End Function
在此基礎(chǔ)上還可以擴展出更完整的SELECT表單。
相關(guān)文章
對象標記具有無效的 ''MSWC.MyInfo'' ProgID
對象標記具有無效的 ''MSWC.MyInfo'' ProgID...2007-02-02如何在數(shù)據(jù)庫中用好Transaction?
如何在數(shù)據(jù)庫中用好Transaction?...2006-06-06