[Classic ASP]

전화번호 하이픈 추가 함수 Function addHyphen(fmemtel) Select Case Len(fmemtel) Case 8 '1588-xxxx t1 = Mid(fmemtel,1,4) t2 = Mid(fmemtel,5,4) response.write t1 & "-" &t2 Case 9 '02-xxx-xxxx t1 = Mid(fmemtel,1,2) t2…

0 Comments

[Classic ASP] 트랜잭션

DB.Errors.clear DB.BeginTrans '트랜잭션 시작 DB.Execute (SQL) 'Execute if DB.Errors.count>0 Then DB.RollbackTrans '에러가 발생한다면 트랜잭션 롤백시킨다. Set objError = Server.CreateObject("ADODB.Error") for each objError in DB.Errors Msg (objerror.Description) '에러문 출력 Next objError.close…

0 Comments

[Classic ASP] 내장 함수 모음

abs() '절대값구하기' array(배열) '배열을 반환' asc() '문자의 ANSI문자값을 반환' atn() '아크 탄젠트로 반환' cbool() 'boolean형식으로 반환' cbyte() 'byte형식으로 반환' ccur() 'currency형식으로 반환' cdate() 'date형식으로 반환' cdbl() 'double형식으로 반환' chr() 'asc()함수의…

0 Comments

[Classic ASP] 스트림을 이용한 파일 다운로드

<% Response.Expires = 0 Response.Buffer = True Response.Clear dir = request("dir") filename = request("filename") filepath = Server.MapPath("\webfs\") & "\Common\etcFiles\"&dir&"\" & filename set objFS = Server.CreateObject("Scripting.FileSystemObject") If objFS.FileExists(filepath) Then Response.ContentType =…

2 Comments

[Classic ASP] JSON_2.0.4.asp / JSON_UTIL_0.1.1.asp

JSON_2.0.4.asp https://github.com/danielmarcoto/asp2console/blob/master/dependencies/JSON_2.0.4.asp <% ' ' VBS JSON 2.0.3 ' Copyright (c) 2009 Tu�rul Topuz ' Under the MIT (MIT-LICENSE.txt) license. ' 'Permission is hereby granted, free of charge, to any…

0 Comments

End of content

No more pages to load