본문 바로가기

[CSS] 2단 레이어에서 상단에 iframe 이 상단높이보다 길때 하단레이어가 올라가는 현상(height:100% 제거) [CSS] 2단 레이어에서 상단에 IFrame 이 상단높이보다 길때 하단레이어가 올라가는 현상 (height:100% 제거) 1. 2단 레이어 타이틀 부분 아랫부분 2. 2단 레이어 중 상단 레이어에 높이가 넘치는 IFrame 있는 경우 타이틀 부분 아랫부분 3. 해결책 상단 레이어에 "height: 100%;" 을 제거하면 하단 레이어가 밑으로 내려감 타이틀 부분 아랫부분 더보기
[MSSQL][Function] strip html tag all, remove html tag, 태그 없애기 [MSSQL][Function] strip html tag all, remove html tag, 태그 없애기 1. Input parameter 1) @iHTMLText - 대상 문자열 2) @iIncludeNewLine => - '0' or '1' - or or 을 char(13)+char(10) 으로 처리하느냐('1'), 안하느냐('0') 2. function/* SELECTDrPlazaDBNew.dbo.[fn_StripHTML]('테스 트 &','0') ==> "테스트 &" */ CREATE FUNCTION[dbo].[fn_StripHTML] ( @iHTMLTextVARCHAR(MAX), @iIncludeNewLineVARCHAR(1)= '0' ) RETURNSVARCHAR(MAX) AS BEGIN.. 더보기
[MSSQL] Row Merge, 여러 Row 합치기 [MSSQL] Row Merge, 여러 Row 합치기 - 여러개의 Row로 된 데이터를 각 키마다 묶어 하나로 보일때 사용 1. 기초자료CREATETABLE#TEMP1 ( CodeINT, VALUEVARCHAR(100) ) INSERT INTO #TEMP1 (Code,Value) VALUES ( 1, '나는' ) INSERT INTO #TEMP1 (Code,Value) VALUES ( 1, '프로그램이' ) INSERT INTO #TEMP1 (Code,Value) VALUES ( 1, '좋다' ) INSERT INTO #TEMP1 (Code,Value) VALUES ( 2, '너도' ) INSERT INTO #TEMP1 (Code,Value) VALUES ( 2, '프로그램이' ) INSERT INTO .. 더보기
span 버튼 클릭시 jquery 새창 띄우기(새탭) span 버튼 클릭시 jquery 새창 띄우기(새탭) 새탭으로오픈 더보기
[javascript] 현재 일자 가져오기 ( YYYY-MM-DD HH:mm:SS ) [javascript] 현재 일자 가져오기 ( YYYY-MM-DD HH:mm:SS ) 더보기
[C#] Get File Size To String, File Extension, Icon By File Extension [C#] Get File Size To String, File Extension, Icon By File Extension 1. Get File Size String public static string GetFileSizeString(long pLength) { string sRtnValue = ""; try { long lUseSize = pLength; string sByte = ""; if (pLength = 1024 && pLength = 1048576) { lUseSize = pLe.. 더보기
[C#] Generic Convert To Entity, List, DataTable [C#] Generic Convert To Entity, List, DataTable 1. ConvertToEntity DataRow => T Entity public static T ConvertToEntity(this DataRow tableRow) where T : new() { // Create a new type of the entity I want Type t = typeof(T); T returnObject = new T(); foreach (DataColumn col in tableRow.Table.Columns) { string colName = col.ColumnName; // Look for the object's property with the columns name, ignore .. 더보기
[jQuery] 게시판 댓글, 답글 처리 로직 [jQuery] 게시판 댓글, 답글 로직 1. 댓글 리스트 LOOP 1) 수정 class="btnEdit" id="btnEdit_" 2) 삭제class="btnDelete" id="btnDelete_" 3) 답글 class="btnReply" id="btnReply_" 4) 수정, 답글 입력창 공간 확보 수정창 : 답글창 : 2. 소스 1) jQuery 2) HTML 1) { %> 답글 | 수정 | 삭제 등록 더보기
[C#] InputBox에서 KeyPress로 Enter Key(엔터키) 입력시 Tab Key(탭키)처럼 움직이기 [C#] InputBox에서 KeyPress로 Enter Key(엔터키) 입력시 Tab Key(탭키) 처럼 움직이기 Formprivate void txtEAK_KeyPress(object sender, KeyPressEventArgs e) { UtilModel.TypingNextStep(sender, e); } UtilModel Class Method TypingNextStep public static void TypingNextStep(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) // enterkey { SendKeys.Send("{TAB}"); } } 더보기
[C#] IsNumeric 함수 구현하기 [C#] IsNumeric 함수 구현하기 public static bool IsNumeric(this string s) { float output; return float.TryParse(s, out output); } 더보기