본문 바로가기
반응형

c#40

[개발/mysql] MySQL 5 C# sample code using ObjectDataSources MySQL 5 C# sample code using ObjectDataSources IntroductionI created this example because I could not find a simple explanation for using MySQL 5 with ObjectDataSources in ASP.NET 2.0.Let me say, I am really impressed with MySQL. I was able to install it easily on my Windows XP machine and get it running in about an hour. I am a long time MS SQL user, and was very frustrated with trying to use O.. 2015. 3. 31.
[개발/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] [GDI+] LineChart 그래프를 만들어보자. (ASP.NET using C#) 1. Introduction 닷넷은 GDI+의 지원으로 더욱더 강력한 웹페이지를 만들어 낼수 있다고 생각한다. 이번 아티글은 동적으로 저장된 데이터를 가지고 바로 Line으로 표현하는 LineChart를 만들어 보고자 한다. 2. Code Line Chart클래스의 클래스이다. 현재 Current페이지의 ContentType 를 Image/jpeg로 설정한후 바로 브라우저에 그래픽을 뿌려지게 된다. 내부의 코드를 따로 설명하지 않아도 주석을 보면 코드를 충분히 이해 할수 있을것이다. namespace에 using System.Drawing.Imaging;를 선언한다. class LineChart { public Bitmap b; public string Title="Default Title"; publi.. 2015. 1. 22.
[개발] VC++, C#, 웹페이지의 존재여부를 확인하기 위한 팁입니다. 웹페이지의 존재여부를 확인하기 위한 팁입니다. [VC++] Check.cpp CServer downloadServer; CString strDownLoadStatus = downloadServer.RequestServer(strUrl.GetBuffer(0)); 웹페이지의 존재여부를 확인하기 위한 팁입니다. [C#] 주어진 URL에 해당하는 웹서버의 HTTP status code을 이용하여 확인한다. boolean exists(String URLName){ try { HttpURLConnection.setFollowRedirects(true) HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection(); con.setReques.. 2011. 1. 19.
[개발/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.
반응형