Rev 119 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| RequestReleaseCombo.asp |'| |'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_rtree_common.asp"--><%'------------ Variable Definition -------------Dim rsQry, Query_StringDim OutString, parBsId'------------ Constants Declaration -----------'------------ Variable Init -------------------parBsId = Request("bs_id")'----------------------------------------------%><%'------------------------------------------------------------------------------------------------------------------------'------------------------------------------------------------------------------------------------------------------------%><%'------------------------ MAIN LINE ---------------------------------If (Request("bs_id")="") ThenResponse.write "ERROR: Missing Parameters at "& ScriptNameEnd If'--------------------------------------------------------------------%><%If parBsId = "1" ThenQuery_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 1"ElseIf parBsId = "2" ThenQuery_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 2"End IfSet rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )OutString = NULLWhile ((NOT rsQry.BOF) AND (NOT rsQry.EOF))OutString = OutString & rsQry("bsa_name") &"|-|"& rsQry("bsa_id") &"|+|"rsQry.MoveNextWEndIf NOT IsNull( OutString ) Then' Remove last ;OutString = Left( OutString, Len(OutString) - 3 )End IfrsQry.CloseSet rsQry = Nothing' Render outputResponse.write OutString%><%Call Destroy_All_Objects%>