u_title=request.form("u_title")<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
' 檢查標題是否被輸入.
if u_title = "" then
%>
-->
檔案標題
font size
12 3
4www.cppcns.comoption>
5 6
第1段第2段
《程式設計客棧;/textarea>提交" >
end if
%>
if u_title <> "" then
u_title=request.form("u_title")
u_paragraph1=request.form("u_paragraph1")
u_paragraph2=request.form("u_paragraph2")
u_text_color=request.form("u_text_color")
u_text_size=request.form("u_text_size")
g_filename=replace(u_title," ","_")
' 如果有乙個使用者輸入了標題,則獲取所有的使用者輸入的內容.
set fso = createobject("scripting.filesystemobject")
set act = fso.createtextfile(server.mappath("write2htm/"&g_filename & "-"& month(date())& day(date())& year(date()) &".htm"), true)
' 建立create the text (html) file檔案到伺服器,並新增mmddyyyy 格式年月日.
' 寫所有使用者輸入的text (html) 檔案, .htm 副檔名檔案可以很容易地轉換成你**最需要的.asp 或 .inc檔案.
act.writeline ""
act.writeline chr(13)
act.writeline ""& u_title &""
act.writeline chr(13)
act.writeline ""
act.writeline chr(13)
act.writeline ""
act.writeline chr(13)
act.writeline u_title &"
" act.writeline chr(13)
act.writeline ""
act.writeline chr(13)
act.writeline u_paragraph1 &"
" act.writeline chr(13)
act.writeline ""
act.writeline chr(13)
act.writeline u_paragraph2 &"
" act.writeline chr(13)
act.writeline ""
act.writeline ""
act.writeline "
此檔案被建立!"
act.writeline now() &"
"act.close
' 關閉檔案.
%>
您的頁面已成功建立!檢視.
.htm"
target="_blank">檢視
程式設計客棧;"
response.write chr(13)
response.write ""& u_title &""
response.write chr(13)
response.write ""
response.write chr(13)
response.write ""
response.write chr(13)
response.write u_title &"
" response.write chr(13)
response.write ""
response.write chr(13)
response.write u_paragraph1 &"
" response.write chr(13)
response.write ""
response.write chr(13)
response.write u_paragraph2 &"
" response.write chr(13)
response.write ""
response.write ""
response.write "
此檔案被建立!"
response.write now() &"
"end if
%>
本文標題: 如何用asp輸出html檔案?
本文位址: /wangluo/bianchengwenda/29900.html
如何用ASP生成靜態Html檔案
htmlwrite.write 輸出title內容 request.form title 輸出body內容 request.form body htmlwrite.close set fout nothing set fso nothing end if 2.但是按照上面的方法生成html檔案非常不...
如何用photoshop輸出html網頁
本次教程就以http www.mobanwang.com mb 200701 50.html中的一模板為例。使用工具 photoshop 8.0.1 在修改好相應的文字與圖象之後,我們就將psd檔案輸出 x html檔案。首先得先對psd檔案做切片,有兩種方法 使用工具欄上的 切片工具 然後在圖象上...
ASP動態輸出html
您現在的位置 首頁 if bigclassid then dim dh set rs server.createobject adodb.recordset sql select from bigclass where bigclassid bigclassid rs.open sql,conn,1...