<%if Session("UID")="" then%> <%else%> <% table=Request("table") no=Request("no") page=Request("page") startpage=Request("startpage") Set dbcon = Server.CreateObject("ADODB.Connection") dbcon.Open ("dsn=hanwed;uid=sa;pwd=;") sql="select * from "&table&" where no="&no Set rs=dbcon.execute(sql) if rs("uid") <> Session("uid") then %> <%else sql="DELETE FROM "&table&" WHERE NO="&NO dbcon.Execute(sql) Response.Redirect "list.asp?table="&table end if end if %>