% response.cachecontrol = "no-cache" %> <% timeout(1) set con = server.createobject("ADODB.Connection") con.open Application("CString") if request.form("Posted") = "Y" then if request("MakeAssignment") <> empty then s_Frame = Request("Frame") if s_Frame = Empty then s_Frame = Replace(Request("Frame_New"), "'", "''") end if strSQL = "INSERT INTO CMS_PageRelatedLinks(MainPageID, SubPageID, Frame) VALUES("& request("MakeAssignment") &", "& request("id") &", '"& s_Frame &"')" con.execute(strSQL) end if con.close set con = nothing response.redirect("assign_doc_content.asp?id="& request("id") &"&FromOrphan="& Request("FromOrphan")) elseif request("deleteID") <> empty and IsNumeric(request("deleteID")) and request("id") <> empty and IsNumeric(request("id")) then strSQL = "DELETE FROM CMS_PageRelatedLinks WHERE MainPageID = "& request("deleteID") &" AND SubPageID = "& request("id") con.execute(strSQL) con.close set con = nothing response.redirect("assign_doc_content.asp?id="& request("id") &"&FromOrphan="& Request("FromOrphan")) end if %>
| <%=strHeading%> |
|
|
<% con.close set con = nothing %>