これは非常に簡単なことだと思いますが、これを機能させることはできません。
「削除」ボタンのあるフォームがあります。www.mypage.com/adm/ads.asp?del=12 を呼び出します。したがって、list.asp は、del=12 のクエリ文字列があることを認識し、対応する項目を削除します。削除後、このページ (Response.Redirect www.mypage.com/adm/ads.asp など) を更新して、クエリ文字列 del=12 が消えるようにします。私はそれを働かせることができません。
If (Request.QueryString("del").Count > 0) Then
id = Request.QueryString("del")
sql = "delete from Ads where ID = " & id & ""
on error resume next
conn.Execute sql
If err<>0 then
Response.Write("Delete error!")
Else
Response.Redirect http://www.mypage.com/adm/ads.asp
//Call opener.location.reload()
End if
ページはリロードされますが、クエリ文字列から del が消えません。