본문 바로가기

Programming

(36)
프로토콜 및 각종규약 문서.. Hypertext Transfer Protocol -- HTTP/1.1 http://www.ietf.org/rfc/rfc2616.txt Content-Disposition Header Field http://www.ietf.org/rfc/rfc2183.txt MIME Media Types http://www.iana.org/assignments/media-types/ MIME Headers http://msdn.microsoft.com/library/en-us/cdosys/html/_cdosys_mime_headers.asp --------------------------------------------------------------------------------------- 한걸음 더 나가기 위해 ..
javascript에서 한글인코딩 http://www.google.co.kr/소설.html HTML에서 이런 한글이 섞인 주소는 오작동할 수 있기에 http://www.google.co.kr/%EC%86%8C%EC%84%A4.html 이런 식으로 이스케이프 해주어야 합니다. 다음과 같은 3가지 함수 중 하나로 한글 주소를 인코딩할 수 있습니다. * encodeURI() : decodeURI() * encodeURIComponent() : decodeURIComponent() * escape() : unescape() encodeURI() 가 적당합니다. 다만, 주소 전체를 http://부터 모두 인코딩하기 위해서는 encodeURIComponent 를 사용합니다. 인코딩된 한글 주소를 다시 복원하기 위해서는 각각의 함수에 대응되는 디코딩..
구분자가 삽입된 문자열 자르기.. WHILE Charindex(';', @DepartmentCodes, @i) > 0 BEGIN SET @i = Charindex(';', @DepartmentCodes, @i) INSERT INTO #buseo VALUES (substring(@DepartmentCodes, @lastIndex, @i-@lastIndex)) SET @lastIndex = @i + 1 SET @i = @i + 1 END -------------------------------------------------------------- 작업하다보면 엄청 많이 쓰이는 로직.. 닷넷에서는 제공되는 메서드를 이용하면 한방에 되는데.. mssql에서는 직접 구현해야한다.. 필요할때 한번에 찾자. ㅋㅋ (계속 구현하기 귀찮아. ㅋㅋ)
C# 제공해주는 기능을 이용하여 정렬문제로 삽질금지! StringComparer c = StringComparer.InvariantCultureIgnoreCase; System.Collections.Generic.List list = new System.Collections.Generic.List(); list.Add("한문석"); list.Add("1234"); list.Add("abcd"); list.Add("ㄷㄷㄷ"); list.Add("ㅎㅎㅎ"); list.Sort(c); 하나의 문자열을 정렬하기 위해선 위의 방법을 쓰고.. 데이터가 여러개라면 자동정렬되는 SortedList를 이용...
Windows 종료 제어 소스코드 가지고 있으면 쓸때가 있겠지 ㅋ
웹그리드 디자인. 이번 프로젝트에 쓰인 그리드 디자인.. 또 쓸때가 있겠지 ㅋ
파일 다운로드 관련 클래스. The HttpResponse.WriteFile method does not work very well with large files since it reads the whole file to memory at once. This may crash the ASP.NET worker process if the file is too big. This helper class uses buffers and continuously checks if the client is connected before it sends any output.
팝업창 화면 중앙에 띄우기