프로그래밍/ASP 9

ASP - Split, For, UBound 활용하여 다중으로 넘어온 값 분할하기

lecArrayValue = Request("LecNum")lecSplitedValue = Split(lecArrayValue, ",") For i=lbound(lecSplitedValue) To UBound(lecSplitedValue) If lecSplitedValue(i) "" Then lecValue = Split(lecSplitedValue(i), "^") End if strSql = "insert into nsurveyhistory(applynum, lecnum, wishlectime, surveyip) values (" & userNum & ", '" & lecValue(0) & "', '" & lecValue(1) & "', '" & Request.ServerVariables("REMOTE..

프로그래밍/ASP 2013.08.20

ASP - ipad 에서 chrome 으로 페이지 접근시 html 소스가 보이는 오류가 나타날 경우

아이패드에 크롬을 깔아서 사용하는 경우가 드물긴 하지만 희박한 확률일 지라도 만약의 경우에 대비해 cache 의 대소문자를 의심해볼 필요가 있다. Private Sub NoCache() With Response '메서드를 사용하여 응답에 HTTP 헤더를 추가 가능 .Addheader "Pragma","no-cache" .Addheader "Cache-Control","no-cache" '================================================================================ .CacheControl = "no-cache" 'ASP에 의해 작성된 결과를 캐시할 것인지 '.ContentType = "text/HTML" '대문자 작성시 아이패드 크롬에서 ..

프로그래밍/ASP 2013.08.20