반응형 닷넷30 [개발/asp.net] UserControl 템플릿을 이용한 공통 UI 렌더링 출처: http://www.taeyo.pe.kr/lecture/NET/UcTemplate.asp강좌 최초 작성일 : 2006년 11월 14일 강좌 최종 수정일 : 2006년 11월 15일 강좌 읽음 수 : 4359 회 작성자 : Taeyo(김 태영) 편집자 : Taeyo(김 태영) 강좌 제목 : UserControl 템플릿을 이용한 공통 UI 렌더링 강좌 전 태오의 잡담>이제 2006년의 크리스마스도 한달 정도밖에 남지 않았네요. 여러분들은 크리스마스에 무엇을 하실 생각이신가요? 무엇을 계획하던 한 해를 잘 정리하면서~ 즐겁게 보내시기 바랍니다.공통적으로 자주 사용하는 UI 영역을 필요로 할 경우 여러분은 주로 어떻게 작업을 해 오셨나요? 대부분의 경우는 그 영역을 User Control이나 Custom.. 2015. 6. 1. [개발/asp] 스크립트 암호화 프로그램과 설명서 스크립트 암호화 프로그램 입니다. aspx 소스입니다.. 2015. 6. 1. [개발/C#/ASP.NET] 하드웨어 유일키 생성 하드웨어 유일키 생성 using System; using System.Management; using System.Security.Cryptography; using System.Security; using System.Collections; using System.Text; namespace Security { /// /// Generates a 16 byte Unique Identification code of a computer /// Example: 4876-8DB5-EE85-69D3-FE52-8CF7-395D-2EA9 /// public class FingerPrint { private static string fingerPrint = string.Empty; public static strin.. 2015. 3. 3. [개발/ASP.NET/C#] 하드웨어 유일키 얻기 2 Contacting a Registration Server to obtain a unique registration key based on unique machine ID Introduction Sometimes in the industry, it is required to collect some unique machine information and send it to a server for the purpose of creating a unique registration key based on the hardware information. This is required in the case when the software requires a per PC registration. Thus we can .. 2015. 3. 3. [개발/asp.net] 금액, 숫자를 문자로 바꾸기 쌈꼬쪼려 소백촌닭 금액, 숫자를 문자로 바꾸기 금액 형식의 숫자를 한글로 바꾸어 반환하는 메서드입니다. 문자열 형식의 숫자를 인수로 넘기는 경우에는 콤마(,)는 허용, 그 외 숫자형식이 아닌 문자는 에러메시지로 처리합니다. 소숫점이하의 수는 소숫점에서 반올림 하여 계산합니다. public string NumberToHangul( double number) { return NumberToHangul( number.ToString() ); } public string NumberToHangul( string strNumber) { // 콤마(,)제거 strNumber = strNumber.Replace(",",""); // 문자열이 숫자형식인지 체크 for( int i=0; i=0 ) { double tem.. 2010. 12. 10. [개발/asp.net] 사용자의 인터넷익스플로러 창 모두 닫기 쌈꼬쪼려 소백촌닭 사용자의 인터넷익스플로러 창 모두 닫기 //네임스페이스 선언 using System.Diagnostics; //현재 사용자 컴퓨터에 열려 있는 익스플로러의 창을 모두 닫는다. public static void KillExplorer() { Process[] procs = Process.GetProcessesByName("IEXPLORE"); for(int i=0; i< procs.Length; i++) procs[i].Kill(); } 현재 실행중인 프로세스를 죽이는 방법으로 iexplore를 종료시킵니다. 2010. 12. 10. [개발/asp.net] 파일이름으로 응용 프로그램 시작하기 쌈꼬쪼려 소백촌닭 출처: http://support.microsoft.com/ 파일이름으로 응용 프로그램 시작하기 using System; using System.Diagnostics; namespace Namespace1 { class Class1 { [STAThread] static void Main(string[] args) { //Get path of the system folder. string sysFolder = Environment.GetFolderPath(Environment.SpecialFolder.System); //Create a new ProcessStartInfo structure. ProcessStartInfo pInfo = new ProcessStartInfo(); //Set.. 2010. 12. 10. [개발/asp.net] Visual Studio 2005에 .NET 3.0 환경 추가하기 쌈꼬쪼려 소백촌닭 출처 : http://blog.naver.com/gboarder/90014703081 Visual Studio 2005에 .NET 3.0 환경 추가하기 Written by Youngil Kim, .NET Developer Visual Studio 2005는 기본적으로 .NET Frameowkr 2.0을 기반으로 출시된 개발도구입니다. 그러나 이번에 2007년 1월달에 Windows Vista가 출시되었고 이 운영체제에서는 .NET Fraemwork 3.0이 기본적으로 내장되어 있습니다. 이렇기 때문에 앞으로 개발환경 및 사용자 환경이 .NET Framework 3.0기반으로 이루어질 것은 확실합니다. 그러나, 아직 .NET 3.0기반의 개발도구가 출시되지 않았기 때문에 Visual St.. 2010. 12. 10. [개발/asp.net] 서버컨트롤에 열거형 값 바인딩하기 쌈꼬쪼려 소백촌닭 출처 : http://blog.naver.com/tear230/100020088426 ColorType이라는 열겨형 객체가 아래와 같이 선언되어 있고, enum ColorType { Red = 1, Green = 2, Blue = 4, Yellow = 8 }; DropDownList1이라는 드롭다운리스트 컨트롤이 아래와 같이 선언되어 있다고 할경우 DropDownList1에 ColorType을 아래코드처럼 바인딩 하려고 하면 에러가 발생합니다. DropDownList1.DataSource = ColorType; 이럴경우 해쉬테이블로 만들어 반환하는 메서드를 만들어서 사용한다. public static Hashtable BindToEnum( Type enumType ) { string[].. 2010. 12. 10. 이전 1 2 3 4 다음 반응형