ASP 寫的自動生成SELECT 表單的函數
更新時間:2006年06月27日 00:00:00 作者:
對于ASP高手當然沒什么用了,但是對于剛入門的初學者和美工就有些用處了。
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
在此基礎上還可以擴展出更完整的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
在此基礎上還可以擴展出更完整的SELECT表單。
相關文章
.NET Framework各版本(.NET2.0 3.0 3.5 4.0)區(qū)別
本文主要介紹.NET各個版本之間的區(qū)別,以幫助新手朋友選擇適合的.NET Framework的版本進行開發(fā)。2016-03-03
asp中Request.ServerVariables的參數集合
這篇文章主要介紹了asp中Request.ServerVariables的參數集合,需要的朋友可以參考下2020-02-02

