<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <%Option Explicit Response.Buffer=TRUE %> <% DIM strSubmission If Request.Form("QuestionID") <> "" Then strSubmission = Request.Form("strSubmission")+"Q"+Request.Form("QuestionID")+"A"+Request.Form("Answer")+"," End If Function StrNull(StrIn) IF StrIn = "" Then StrNull = StrNull & "null" Else StrNull = StrNull & Chr(39) & StrIn & Chr(39) End IF End Function Function StrNull0(StrIn) IF StrIn = "" Then StrNull0 = StrNull0 & "0" Else StrNull0 = StrNull0 & Chr(39) & StrIn & Chr(39) End IF End Function DIM strSessionID, objRS, objCMD,objRS2, objCMD2, strSQL, iCount, strLevel, strSubLevel1, strSubLevel2, strSubLevel3 'Populate strSessionID if not empty If strSessionID = "" Then strSessionID = Session.SessionID End If 'Connect to database to get a question Set objRS = createobject("ADODB.recordset") Set objCmd = Server.CreateObject("ADODB.Command") With objCmd .ActiveConnection = objConnect .CommandText = "RG_GetQuestion (2, " & StrNull0(Request.Form("QuestionID")) & ", " & StrNull0(Request.QueryString("Status")) & ", " & StrNull(Request.Form("Answer")) & ", " & StrNull(Request.ServerVariables("Remote_Addr")) & ", " & strSessionID & ")" .CommandType = adCmdStoredProc End With Set objRS = objCmd.Execute %> Partnership for 21st Century Skills - MILE Guide
<%If Request.ServerVariables("Path_Info") = "/default.asp" Then%> <%Else%> <%End If%>
Back to the Partnership Home Page
 
 
On-Line Readiness Guide
<% 'If no more questions mark the questions as complete and get scores If (objRS.EOF And objRS.BOF) Then Set objRS2 = createobject("ADODB.recordset") Set objCmd2 = Server.CreateObject("ADODB.Command") With objCmd2 .ActiveConnection = objConnect .CommandText = "RG_Save (" & StrNull(Request.ServerVariables("Remote_Addr")) & ", " & StrNull(Session.SessionID) & "," & StrNull(strSubmission) & ")" .CommandType = adCmdStoredProc End With Set objRS2 = objCmd2.Execute Set objRS2 = Nothing Response.Redirect("online_guide_completed.asp") Else '************************* 'Show the Question and its Answers '************************* iCount = 1 Do While Not objRS.EOF If iCount = 1 Then%> <%If objRS("CatColor") <> "" Then%> <%End If%>
">--------  <%=objRS("CatDesc")%>  --------
">----  <%=objRS("SubDesc")%>  ----
Question <%=objRS("QuestionOrder")%>.

<%=objRS("QuestionDesc")%>

">
<%ElseIf iCount > 1 Then %> <%End If iCount = iCount+1 objRS.MoveNext Loop%>
" checked> <%=objRS("AnswerDesc")%>

"> <%=objRS("AnswerDesc")%>

<%End If%>


<%If LCASE(Request.ServerVariables("URL")) = "/default.asp" Then%>

Board Members Only
Education Advisors <%End If%>