asp修改,缺少End

時間 2022-07-24 18:55:05

1樓:匿名使用者

一樓回答正確,但不是最佳方法。

好的程式設計習慣應該是盡早結束每個if....end if建議在開頭處用:

<%if session("id")="" then response.end%>

這樣寫成一行,不需要end if

2樓:

<%set rs=server.createobject("adodb.recordset")

rs.open sql,conn,1,3

user=request.form("user")content=request.form("content")rs("content")=contentrs.update

end if

%>

3樓:匿名使用者

你前面用了<%if session("id")<>"" then%>

後面沒有結束end if

4樓:

update.asp的最後加上

<%end if%>

asp連線access後修改密碼

set rs 你把上面的這段換成下面的這段,下面這段是我寫的。sql,conn,1,3 if not or not then rs password newpassword 密碼修改成功,請切記您的新密碼 newpassword elseif submit 返回 then end if 應該是找不到...

關於asp檔案不能執行,asp檔案怎麼執行

asp只能在iis除錯中執行,它不能像開啟一般檔案那樣點選開啟的,它必須在網頁中輸入你的本機ip,它才可以開啟。這個ip在iis中有設定,你可以檢視它的屬性。另外iis還可以設定你的 地方,也就是指向乙個資料夾,那個資料夾就是asp存放的地方。同時還要注意預設開啟的首頁,如果你的asp首頁是inde...

asp實現熱門搜尋功能,asp實現熱門搜尋功能

rs keyword search rs.update 這2行 放在 end if 下面 具體如下 dim search,lei set rs server.createobject adodb.recordset rs.open sql,conn,1,3 if not rs.eof and rs....