티스토리 툴바


'정리없는자료'에 해당되는 글 270건

  1. 2012/01/05 error \\?\C:\Windows\system32\inetserv\config\applicationHost.config (1)
  2. 2011/12/14 .NET Reflector 닷넷 리플렉터
  3. 2011/12/14 microsoft 마이크로소프트 로고 역사
  4. 2011/12/14 mssql order by 영문,한글 정렬
  5. 2011/12/13 Core Temp, CPU 온도 확인
  6. 2011/12/12 javascript json encoding
  7. 2011/12/12 Internet Explorer 속도가 느릴경우
  8. 2011/12/12 Windows에서 소리가 안 나는 경우
  9. 2011/12/05 Windows 7에서 Windows XP Mode 설치 및 사용
  10. 2011/12/02 2011 11월 프로그래밍 언어 순위
  11. 2011/12/01 asp.net ClientMode="Static"
  12. 2011/12/01 DateTime.Compare 날짜 비교
  13. 2011/04/21 ASP.NET ( C# ) Socket 통신, w3Sockets
  14. 2010/11/12 MSSQL 자주사용되는 날짜 함수
  15. 2010/11/12 IIS7.x에서 파일 업로드 용량 변환
  16. 2010/11/12 repeater Excel download
  17. 2010/11/12 Repeater FooterTemplate
  18. 2010/06/10 비스타 듀얼 모니터시 화면깨짐 현상
  19. 2010/06/06 인터넷 속도를 빠르게 하기
  20. 2010/06/06 윈도우 7 네이트온 원격지원 (1)
  21. 2009/11/23 IETester - IE 버전 확인
  22. 2009/11/23 IE Developer Toolbar - 디자인깨짐
  23. 2008/10/15 ASP.NET 특정 일자를 가감
  24. 2008/10/15 ASP.NET 정상적인 일자인지를 체크
  25. 2008/10/15 ASP.NET 정된 일자의 요일을 가져오기
  26. 2008/10/15 ASP.NET 초의 값을 HH:NN:SS 의 형식
  27. 2008/10/14 ASP.NET 두개의 시간의 간격을 계산
  28. 2008/10/14 ASP.NET 숫자를 컴마를 찍고 문자로 변환
  29. 2008/10/14 ASP.NET 입력된 객체가 NULL일 경우,""을 리턴
  30. 2008/10/14 ASP.NET 주민등록번호 13자리에 "-"를 넣어서 리턴


IIS 7 에러

 \\?\C:\Windows\system32\inetserv\config\applicationHost.config

해결

1. 리부팅
2. iis 재설치
저작자 표시

top
TAG IIS

Trackback Address :: http://deuxist.tistory.com/trackback/508 관련글 쓰기

  1. Tracked from Skip Bins christies beach 2012/04/17 06:23 삭제

    Subject: Skip Bins christies beach

    정리없는 자료 :: error \\?\C:\Windows\system32\inetserv\config\applicationHost.config
  1. fashion trends 2012 2012/03/06 02:45 댓글주소 | 수정/삭제 | 댓글

    관리자의 승인을 기다리고 있는 댓글입니다

Write a comment



닷넷 리플렉터
닷넷 디컴파일러 및 디스어셈블리 툴(어셈블리 -> IL, c#, VB, Delphi, MC++, Oxygene)
http://www.reflector.net/




 

저작자 표시

'정리없는자료 > 유틸' 카테고리의 다른 글

.NET Reflector 닷넷 리플렉터  (0) 2011/12/14
Core Temp, CPU 온도 확인  (0) 2011/12/13
IETester - IE 버전 확인  (0) 2009/11/23
IE Developer Toolbar - 디자인깨짐  (0) 2009/11/23

top
TAG Reflector

Trackback Address :: http://deuxist.tistory.com/trackback/507 관련글 쓰기

Write a comment



'Microsoft' 는 Bill Gates가 Paul Allen에게 보낸 메일에서 처음 사용이 되었답니다. 그러나 'Micro-Soft'와 같은 형태였지요. 1976년 11월 회사가 등록될 때 하이픈이 빠지게 되었습니다.



저작자 표시

top
TAG Microsoft

Trackback Address :: http://deuxist.tistory.com/trackback/506 관련글 쓰기

Write a comment



mssql order by 영문,한글 정렬

COLLATE 절사용

SELECT * FROM TABLE ORDER BY COL COLLATE Korean_Wansung_BIN
저작자 표시

'정리없는자료 > DB' 카테고리의 다른 글

mssql order by 영문,한글 정렬  (0) 2011/12/14
MSSQL 자주사용되는 날짜 함수  (0) 2010/11/12
sql2005 error:40 원격 연결 허용  (1) 2008/05/28
MS-SQL 국가 통계 IP  (0) 2007/12/22
MS-SQL Transation, Lock  (0) 2007/10/26
MS-SQL 함수만들기  (0) 2007/10/23

top
TAG mssql

Trackback Address :: http://deuxist.tistory.com/trackback/505 관련글 쓰기

Write a comment



 

PC CPU 온도 알려주는 프로그램

http://www.alcpu.com/CoreTemp/

다운로드

저작자 표시

'정리없는자료 > 유틸' 카테고리의 다른 글

.NET Reflector 닷넷 리플렉터  (0) 2011/12/14
Core Temp, CPU 온도 확인  (0) 2011/12/13
IETester - IE 버전 확인  (0) 2009/11/23
IE Developer Toolbar - 디자인깨짐  (0) 2009/11/23

top
TAG Core Temp

Trackback Address :: http://deuxist.tistory.com/trackback/504 관련글 쓰기

Write a comment



json encoding

function json_encode($data) {
 switch (gettype($data)) {
  case 'boolean':
   return $data?'true':'false';
  case 'integer':
  case 'double':
   return $data;
  case 'string':
   return '"'.strtr($data, array('\\'=>'\\\\','"'=>'\\"')).'"';
  case 'array':
   $rel = false; // relative array?
    $key = array_keys($data);
   foreach ($key as $v) {
    if (!is_int($v)) {
     $rel = true;
     break;
    }
   }

   $arr = array();
   foreach ($data as $k=>$v) {
    $arr[] = ($rel?'"'.strtr($k, array('\\'=>'\\\\','"'=>'\\"')).'":':'').json_encode2($v);
   }

   return $rel?'{'.join(',', $arr).'}':'['.join(',', $arr).']';
  default:
   return '""';
 }
}


 

저작자 표시

'정리없는자료 > Javascript' 카테고리의 다른 글

javascript json encoding  (0) 2011/12/12
javascript 년/월/일 뒤의 날짜 리턴  (2) 2008/05/23
javascript 클리핑  (0) 2008/05/05
javascript 테이블 셀이동  (0) 2008/05/05
javascript CapLock  (0) 2008/05/05
javascript 달력  (0) 2008/05/03

top

Trackback Address :: http://deuxist.tistory.com/trackback/503 관련글 쓰기

Write a comment



윈도우 인터넷이 느릴경우

1. 익스플러러 업그레이드
http://windows.microsoft.com/ko-KR/internet-explorer/downloads/ie 

2. 설정 복원
http://go.microsoft.com/?linkid=9646978

3. 추가기능 사용안함
http://go.microsoft.com/?linkid=9708413

4. 레지스트리값 삭제
윈도우키 + R -> regedit 실행
HKEY_LOCAL_MACHINE
-SOFTWARE
  -microsoft
   -Windows
    -CurrentVersion
     -Explorer
      -Browser Helper Objects
폴더안에 있는 내용을 삭제한다.


저작자 표시

top

Trackback Address :: http://deuxist.tistory.com/trackback/502 관련글 쓰기

Write a comment




1. 하드웨어
- 사운드 카드 확인
윈도우키 + R -> devmgmt.msc 입력 -> 장치관리자 화면에서 확인한다.
- 케이블 연결 확인

2. 드라이버 업데이트
리얼텍
High Definition Audio Codecs (Software)
 
VIA
http://kr.viatech.com/kr/support/drivers.jsp

3. 윈도우 설정 확인
윈도우키 + R -> sndvol.exe 입력 -> 아이콘을 풀어준다.
저작자 표시

top
TAG 소리

Trackback Address :: http://deuxist.tistory.com/trackback/501 관련글 쓰기

Write a comment



Windows 7에서 Windows XP Mode 설치 및 사용
+
Windows 7(윈도우 7) Professional(프로페셔널)이나 Enterprise(엔터프라이즈), Ultimate(얼티밋)에서 가능하고 홈프리미엄의 경우  별도로 WindowsXP SP3 시디나 파일이 필요합니다.

  1. Windows XP Mode 및 Windows 가상 PC 웹 사이트로 이동하여 Windows XP Mode 및 Windows 가상 PC 지금 다운로드를 클릭합니다.

  2. 설치할 Windows 7 에디션 및 원하는 언어 선택에서 시스템 선택 드롭다운 목록을 클릭한 다음 현재 실행하고 있는 Windows 7(윈도우 7) 에디션을 클릭합니다.

    • 실행 중인 Windows 7(윈도우 7) 에디션을 확인하려면 시작 단추 시작 단추 그림를 클릭한 다음, 컴퓨터를 마우스 오른쪽 단추로 클릭하고 속성을 클릭합니다. 실행 중인 Windows 7(윈도우 7) 에디션이 Windows 에디션 목록에 나타납니다.(또한 시스템 종류 옆의 시스템에 32비트와 64비트 정보가 표시됩니다.)
  3. 언어 선택 드롭다운 목록을 클릭한 다음 사용할 언어를 클릭합니다.

  4. 2단계의 Windows XP 모드 다운로드 및 설치 아래 Windows XP 모드에서 다운로드를 클릭합니다.

  5. Windows XP(윈도우 XP) 모드를 바로 설치하려면 열기 또는 실행을 클릭하고 화면에 나타나는 지침을 따릅니다. Windows XP(윈도우 XP) 모드를 나중에 설치하려면 저장을 클릭하고 설치 파일을 컴퓨터에 다운로드합니다. Windows XP(윈도우 XP) 모드를 설치할 준비가 되었을때 파일을 두 번 클릭합니다.

    Windows XP Mode(윈도우 XP 모드)를 다시 설치해야 할 경우에 대비하여 저장을 클릭하여 파일을 컴퓨터에 저장하는 것이 좋습니다.

  6. Windows XP 모드 설치 시작 대화 상자에서 다음을 클릭합니다.

  7. Windows XP Mode(윈도우 XP 모드)에서 사용하는 가상 하드 디스크 파일의 위치를 선택하거나 기본 위치를 승인한 후 다음을 클릭합니다.

  8. 설치 완료 화면에서 마침을 클릭합니다.


    자세한사항은 아래 링크참조
    http://windows.microsoft.com/ko-KR/windows7/install-and-use-windows-xp-mode-in-windows-7


top

Trackback Address :: http://deuxist.tistory.com/trackback/500 관련글 쓰기

Write a comment



2011 11월 프로그래밍 언어 순위
 Programming Language
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html 

Position
Nov 2011
Position
Nov 2010
Delta in Position Programming Language Ratings
Nov 2011
Delta
Nov 2010
Status
1 1 Java 17.874% -0.63%   A
2 2 C 17.322% +0.61%   A
3 3 C++ 8.084% -1.41%   A
4 5 C# 7.319% +1.61%   A
5 4 PHP 6.096% -1.72%   A
6 8 Objective-C 5.983% +2.79%   A
7 7 (Visual) Basic 5.041% -0.43%   A
8 6 Python 3.617% -2.06%   A
9 11 JavaScript 2.565% +0.90%   A
10 9 Perl 2.078% -0.39%   A
11 10 Ruby 1.502% -0.40%   A
12 20 PL/SQL 1.438% +0.78%   A
13 13 Lisp 1.182% +0.09%   A
14 15 Pascal 0.991% +0.21%   A
15 21 MATLAB 0.955% +0.32%   A--
16 12 Delphi/Object Pascal 0.872% -0.77%   A
17 23 ABAP 0.847% +0.25%   A--
18 22 Lua 0.635% +0.02%   A-
19 16 Ada 0.622% -0.07%   B
20 19 RPG (OS/400) 0.620% -0.04%   B

'정리없는자료 > 수집소스,자료' 카테고리의 다른 글

2011 11월 프로그래밍 언어 순위  (0) 2011/12/02
연산자의 기능  (0) 2007/11/01
UTCK3.1 새 시각 동기 프로그램  (0) 2007/10/15
피보나치 수열  (0) 2007/08/12
toupper, tolower  (0) 2007/07/21
구조체 공용체 사용  (0) 2007/07/18

top

Trackback Address :: http://deuxist.tistory.com/trackback/499 관련글 쓰기

Write a comment




asp.net ClientMode="Static" , ClientID 
UpdatePanel 안에서 사용시에는 PostBack 이 일어납니다.

FrameWork4.0

<script>

$("#<%= ddl.ClientID %>")
--> $("#ddl") //ClientMode="Static"

</script>

<asp:DropDownList
ID ="ddl" runat ="serverClientMode="Static" > </DropDownList>




top

Trackback Address :: http://deuxist.tistory.com/trackback/498 관련글 쓰기

Write a comment




DateTime.Compare 날짜 비교
public static int Compare(
	DateTime t1,
	DateTime t2
)
DateTime.Compare(DateTime t, DateTime t1) < 0  // t 가 t1보다 이전
DateTime.Compare(DateTime t, DateTime t1) == 0 // t 가 t1와 같음
DateTime.Compare(DateTime t, DateTime t1) > 0  // t 가 t1보다 클경우
 
if(DateTime.Compare(
Convert.ToDateTime('2011-11-25').AddDays(10), 
Convert.ToDateTime('2011-12-01')) > 0)
 
 

top

Trackback Address :: http://deuxist.tistory.com/trackback/497 관련글 쓰기

Write a comment




ASP.NET w3socket 통한 소켓 통신

Socket.dll 다운로드 

.cs
Socket.TCPClass sock = new Socket.TCPClass();
sock.Host = "IP:포트";
sock.TimeOut = 2000;
sock.Open();
sock.SendLine("Send");
sock.Wait();
Response.Write(sock.GetText(6));
Response.Write(sock.Buffer);
sock.Close();

'정리없는자료 > .NET' 카테고리의 다른 글

asp.net ClientMode="Static"  (0) 2011/12/01
DateTime.Compare 날짜 비교  (0) 2011/12/01
ASP.NET ( C# ) Socket 통신, w3Sockets  (0) 2011/04/21
IIS7.x에서 파일 업로드 용량 변환  (0) 2010/11/12
repeater Excel download  (0) 2010/11/12
Repeater FooterTemplate  (0) 2010/11/12

top
TAG ASP.NET, c#, socket

Trackback Address :: http://deuxist.tistory.com/trackback/496 관련글 쓰기

Write a comment




GETDATE() : 현재 날짜와 시간 출력

DAY(date) : 날짜(일) 출력

MONTH(date) : 월 출력

YEAR(date) : 년도 출력


날짜 출력형식

mm/dd/yy  : CONVERT(varchar(8), date, 101)

yy.mm.dd  :  CONVERT(varchar(8), date, 102)

dd/mm/yy  :  CONVERT(varchar(8), date, 103)

dd-mm-yy  : CONVERT(varchar(8), date, 105)

yy/mm/dd  : CONVERT(varchar(8), date, 111)

yyyy-mm-dd  : CONVERT(varchar(10), date, 126)


dd는 일, mm는 월, yy는 년

DATEADD("dd", 1, getdate()) : getdate()에 1일을 더합니다.

DATEDIFF("dd", vDate, getdate()) : vDate에서 getdate()을 뺀 날짜(일)수

DATENAME("mm", getdate()) : getdate()의 월을 가져옵니다.(영문)

DATEPART("mm", getdate()) : getdate()의 월을 가져옵니다.(숫자)

'정리없는자료 > DB' 카테고리의 다른 글

mssql order by 영문,한글 정렬  (0) 2011/12/14
MSSQL 자주사용되는 날짜 함수  (0) 2010/11/12
sql2005 error:40 원격 연결 허용  (1) 2008/05/28
MS-SQL 국가 통계 IP  (0) 2007/12/22
MS-SQL Transation, Lock  (0) 2007/10/26
MS-SQL 함수만들기  (0) 2007/10/23

top
TAG mssql, 함수

Trackback Address :: http://deuxist.tistory.com/trackback/495 관련글 쓰기

Write a comment



Web.config에 설정
<system.web>
 <httpRuntime executionTimeout="2400" maxRequestLength="102400"  enable="true"/>
</system.web>


CMD에서 실행
%windir%\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:requestFiltering -requestLimits.maxAllowedContentLength:104857600 -commitpath:apphost

'정리없는자료 > .NET' 카테고리의 다른 글

DateTime.Compare 날짜 비교  (0) 2011/12/01
ASP.NET ( C# ) Socket 통신, w3Sockets  (0) 2011/04/21
IIS7.x에서 파일 업로드 용량 변환  (0) 2010/11/12
repeater Excel download  (0) 2010/11/12
Repeater FooterTemplate  (0) 2010/11/12
ASP.NET 특정 일자를 가감  (0) 2008/10/15

top
TAG ASP.NET, IIS

Trackback Address :: http://deuxist.tistory.com/trackback/494 관련글 쓰기

Write a comment



리피터 엑셀 다운로드
 public void RptToExcel(System.Web.UI.WebControls.Repeater repeater, string filename)
 {
        repeater.EnableViewState = false;

        System.IO.StringWriter sw= new System.IO.StringWriter();
        System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(sw);
        repeater.RenderControl(hw);

        ExportExcel(sw, filename);
 }
private void ExportExcel(System.IO.StringWriter sw, string filename)
{
        Response.ContentType = "application/vnd.ms-excel";
        Response.AddHeader("Content-Disposition", "attachment;filename="
        + string.Concat(DateTime.Now.ToString("yyyyMMddHHmmss"), ".xls"));
        Response.Charset = "ks_c_5601-1987";
        string data = @"<html><head><style>.text {mso-number-format:\@;} </style>
       <meta http-equiv='content-type' content='text/html; charset=utf-8'></head><body>";
       data += System.Text.RegularExpressions.Regex.Replace(sw.ToString(), "&nbsp;", " ");
        data += "</body></html>";

        Response.Write(data);
        Response.End();
}


rptExcel.DataSource = ds.Tables[0];
rptExcel.DataBind();
rptExcel.Visible = true;
RptToExcel(rptExcel, "name.xls");
rptExcel.Visible = false;

'정리없는자료 > .NET' 카테고리의 다른 글

ASP.NET ( C# ) Socket 통신, w3Sockets  (0) 2011/04/21
IIS7.x에서 파일 업로드 용량 변환  (0) 2010/11/12
repeater Excel download  (0) 2010/11/12
Repeater FooterTemplate  (0) 2010/11/12
ASP.NET 특정 일자를 가감  (0) 2008/10/15
ASP.NET 정상적인 일자인지를 체크  (0) 2008/10/15

top

Trackback Address :: http://deuxist.tistory.com/trackback/493 관련글 쓰기

Write a comment




바인딩된 데이터가 없을시에
 <FooterTemplate>

<tr runat="server" id="TrEmpty" visible="<%#((System.Data.DataTable)rpt.DataSource).Rows.Count  == 0 ? true : false%>" >
  <td   colspan="5">조회된 데이터가 없습니다</td>
</tr>    

 <FooterTemplate>
 
top

Trackback Address :: http://deuxist.tistory.com/trackback/492 관련글 쓰기

Write a comment




별문제없이 듀얼 사용되다가 갑작스럽게 증상이 나타나는 경우가있네요.

방법 1.
내 컴퓨터(오른쪽버튼클릭) -> 관리 -> 작업스케줄러 -> 작업 스케줄러 라이브러리-> 실행 중인 모든 작업 표시 ->TMM 작업끝내기

방법 2.
에어로 기능 끄기

방법 3.
패치
http://blog.hanafos.com/yeamaec/512


이 밖에 인터넷에 자료는 많으나, 적용해도 해결안되기도합니다.


top
TAG 비스타

Trackback Address :: http://deuxist.tistory.com/trackback/491 관련글 쓰기

Write a comment




인터넷 속도향상, 브라우징 서핑 및 반응성향상, 핑값 개선, 다운로드 안정서어 향상

http://www.parkoz.com/zboard/view.php?id=my_tips&no=13513&category=
top

Trackback Address :: http://deuxist.tistory.com/trackback/490 관련글 쓰기

Write a comment



windows 7 원격지원시 창이 사라지거나 인터넷 실행시 에러가 날때가 있더군요.

해결방법

1. [시작] -> [제어판] -> [사용자 계정] 클릭

3. [사용자 계정 컨트롤 설정 변경] 링크를 클릭

4. 슬라이드바 조절

5. 슬라이드바를 ↓ 로 최대한 내려서 적용 -> 재부팅


top

Trackback Address :: http://deuxist.tistory.com/trackback/489 관련글 쓰기

  1. TeamViewer 2010/07/05 18:00 댓글주소 | 수정/삭제 | 댓글

    안녕하세요.

    저희는 독일에 위치한 원격 제어 소프트웨어을 개발하는 TeamViewer입니다.

    팀뷰어는 윈도우뿐만 아니라 리눅스와 맥킨토시 또한 아이폰에서도 사용가능하며 소프트웨어를 한글어로 제공하고 있습니다.

    저희 홈페이지 www.teamviewer.com 를 통해 다운로드를 받으실 수 있으며 또한 개인 사용자에게는 다운로드가 무료로 제공됩니다.

    문의 사항이 있으시면 support@teamviewer.com 으로 언제든지 연락주시기 바랍니다.

    감사합니다.

    Teamviewer Germany

Write a comment



간단한 디자인 깨짐이나 확인가능합니다.

실제와 다르니 확신하지않고 사용하는게 좋습니다.

정확한건 버전별로 깔려있는 PC에서 확인하는게 확실합니다.

단, 6.0은 서비스팩의 영향을 받기때문에

삽질은 필요하겠죠.

http://www.my-debugbar.com/wiki/IETester/HomePage

IETester

'정리없는자료 > 유틸' 카테고리의 다른 글

.NET Reflector 닷넷 리플렉터  (0) 2011/12/14
Core Temp, CPU 온도 확인  (0) 2011/12/13
IETester - IE 버전 확인  (0) 2009/11/23
IE Developer Toolbar - 디자인깨짐  (0) 2009/11/23

top

Trackback Address :: http://deuxist.tistory.com/trackback/488 관련글 쓰기

Write a comment




코더가 없을시 IE 6.0 , IE 7.0, IE 8.0 디자인깨지는건 어쩔수없이 개발자가 해야겠죠.
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en 

다운로드후 설치하시면, 쉽게 사용할 수있으나..IE 6.0 는 역시나 힘들어~요.

'정리없는자료 > 유틸' 카테고리의 다른 글

.NET Reflector 닷넷 리플렉터  (0) 2011/12/14
Core Temp, CPU 온도 확인  (0) 2011/12/13
IETester - IE 버전 확인  (0) 2009/11/23
IE Developer Toolbar - 디자인깨짐  (0) 2009/11/23

top

Trackback Address :: http://deuxist.tistory.com/trackback/487 관련글 쓰기

Write a comment



   public static string DateCalculate(string sDate, int iFG, int iValue)
        {
            DateTime dt = new DateTime(int.Parse(sDate.Substring(0, 4)),
                int.Parse(sDate.Substring(4, 2)),
                int.Parse(sDate.Substring(6, 2)));

            string sTemp = null;
            switch (iFG)
            {
                case 0:
                    sTemp = dt.AddYears(iValue).ToString("yyyymmdd");
                    break;
                case 1:
                    sTemp = dt.AddMonths(iValue).ToString("yyyymmdd");
                    break;
                case 2:
                    sTemp = dt.AddDays(iValue).ToString("yyyymmdd");
                    break;
            }

            return sTemp;
        }


top
TAG ASP.NET

Trackback Address :: http://deuxist.tistory.com/trackback/486 관련글 쓰기

Write a comment



  public static bool ValidDate(string sDate)
        {
            if (sDate.Trim().Length == 8)
            {
                try
                {

                    DateTime datDate = DateTime.ParseExact(sDate, "yyyyMMdd", null);

                    return true;
                }
                catch (Exception)
                {
                    return false;
                }
            }
            else
                return false;
        }


top
TAG ASP.NET

Trackback Address :: http://deuxist.tistory.com/trackback/485 관련글 쓰기

Write a comment



  public static string DayWeek(string dDAte, int tYpe)
        {
            DateTime datDate = new DateTime(int.Parse(dDAte.Substring(0, 4)),
                int.Parse(dDAte.Substring(4, 2)),
                int.Parse(dDAte.Substring(6, 2)));

            int intDay = int.Parse(datDate.DayOfWeek.ToString("d"));


            if (tYpe== 1)
            {
                switch (intDay)
                {
                    case 0: return "일";
                    case 1: return "월";
                    case 2: return "화";
                    case 3: return "수";
                    case 4: return "목";
                    case 5: return "금";
                    case 6: return "토";
                    case 7: return "일";
                    default: return " ";
                }
            }
            else
            {
                switch (intDay)
                {
                    case 0: return "SUN";
                    case 1: return "MON";
                    case 2: return "TUE";
                    case 3: return "WED";
                    case 4: return "THU";
                    case 5: return "FRI";
                    case 6: return "SAT";
                    case 7: return "SUN";
                    default: return " ";
                }
            }
        }


top
TAG ASP.NET

Trackback Address :: http://deuxist.tistory.com/trackback/484 관련글 쓰기

Write a comment



        public static string secTotime(double sTimes)
        {
            int iHour = 0;
            int iMin = 0;
            int iSec = 0;

            iHour = (int)(sTimes / 3600);
            sTimes -= iHour * 3600;

            iMin = (int)(sTimes/ 60);
            dTimes -= iMin * 60;

            iSec = (int)sTimes;

            return iHour.ToString("00") + ":" + iMin.ToString("00") + ":" + iSec.ToString("00");
        }


top
TAG ASP.NET

Trackback Address :: http://deuxist.tistory.com/trackback/483 관련글 쓰기

Write a comment



        public static double timeEmp(string sTime, string eTime)
        {
            if (sTime.Length < 14 || eTime.Length < 14)
                return -1;
            else
            {
                DateTime dtStart = new DateTime(int.Parse(sTime.Substring(0, 4)),
                    int.Parse(sTime.Substring(4, 2)),
                    int.Parse(sTime.Substring(6, 2)),
                    int.Parse(sTime.Substring(8, 2)),
                    int.Parse(sTime.Substring(10, 2)),
                    int.Parse(sTime.Substring(12, 2))
                    );

                DateTime dtEnd = new DateTime(int.Parse(eTime.Substring(0, 4)),
                    int.Parse(eTime.Substring(4, 2)),
                    int.Parse(eTime.Substring(6, 2)),
                    int.Parse(eTime.Substring(8, 2)),
                    int.Parse(eTime.Substring(10, 2)),
                    int.Parse(eTime.Substring(12, 2))
                    );

                TimeSpan tp;

                tp = dtStart - dtEnd;

                if (tp.TotalHours < 0)
                    return 0 - tp.TotalHours;
                else
                    return tp.TotalHours;
            }
        }


top

Trackback Address :: http://deuxist.tistory.com/trackback/482 관련글 쓰기

Write a comment




        public static string setComma(int ValueS)
        {
            try
            {
                return string.Format("{0:#,##0}", ValueS).Trim();
            }
            catch
            {
                return "";
            }
        }
top
TAG ASP.NET

Trackback Address :: http://deuxist.tistory.com/trackback/481 관련글 쓰기

Write a comment



public static string objC(object obj)
        {
            string strR = "";
            try
            {
                strR= obj.ToString().Trim();
                return strR;
            }
            catch
            {
                return strR;
            }
        }

top
TAG ASP.NET, c#

Trackback Address :: http://deuxist.tistory.com/trackback/480 관련글 쓰기

Write a comment



public static string juminGet(string str)
        {
            string rep = "";
            rep = str.Substring(0, 6) + "-" + str.Substring(6, 7);

            return rep;
        }


top
TAG ASP.NET, c#

Trackback Address :: http://deuxist.tistory.com/trackback/479 관련글 쓰기

Write a comment


◀ PREV : [1] : [2] : [3] : [4] : [5] : ... [9] : NEXT ▶