본문 바로가기

Language(언어)/ASP32

ASP Applicetion 개체 Applicetion 개체 메소드 LOCK UNLOCK 다른 사용자의 Application 변수 수정을 막는다. 다른 사용자의 Application 변수 수정을 허용한다. 이벤트 ONSTART ONEND 웹사이트의 어플리케이션이 시작할 때 발생 웹사이트의 어플리케이션이 끝날 때 발생 예) application 2013. 11. 1.
ASP Global.asa 란? Global.asa 란? 어플리케이션이 시작되고 끝나는 시점과 세션이 시작되고 끝나는 시점을 체크하는 것이다. 또한 global.asa 가 없다면 웹사이트에 들어오는 모든 방문자가 반드시 제일 처음 통과하는 관문으로, 방문자가 사이트의 그 어떤 페이지로 접근 한다해도 무조건 이 global.asa 를 통과한 후 그 페이지로 자동으로 보내주게 된다. global.asa 는 4개의 주요 이벤트를 감지하는 책임이 있다. application_onstart, application_onend, session_onstart, session_onend sub application _onstart '어플리케이션이 시작할 때의 해야 할 일을 코딩 end sub sub application _onend '어플리케이션이 끝.. 2013. 11. 1.
ASP input style 테그 속성 input style 테그 속성 input style 테그 # input type='text' style="ime-mode:active;" //글입력시 기본 한글모드 style="ime-mode:inactive;" //글입력시 기본 영문모드 style="ime-mode:disabled;"; //글입력시 무조건 영문모드 (한/영키 변환해도 무조건 영문) syle="font-size:10pt;" //글자크기 syle="color:blue;" //글자색 syle="border-size:1;" //테두리 크기 syle="border-color:black;" //테두리색 syle="background-color:white;" //배경색 syle="border-width:1;" //테두리 두께 syle="borde.. 2013. 11. 1.
ASP 첨부파일 문자열 자르기 첨부파일 문자열 자르기 보통 첨부파일을 등록할때 문자열 자르기를 하게 된다. 하지만 경로까지 포함되어 있다보니 파일명, 또는 확장자만 필요로 할 때가 있다. 이때는 Mid,Left, InstrRev 를 이용해서 자르기를 하면 된다. 파일 : file = d:\download\test.txt 1. 파일명 자르기 Ext = Mid(file, InstrRev(file,"\")+1) 결과 : test.txt 2. 확장자만 자르기 Ext = Mid(file, InstrRev(file,".")+1) 결과 : txt 3. 파일 이름만 자르기 test = Mid(file, InstrRev(file,"\")+1) Ext = Left(test ,InstrRev(test ,".")-1) 결과 : test 2013. 11. 1.