본문 바로가기
반응형

c#40

[개발/C#] 네트웍 공유 폴더 사용시 자격증명 방법 파워빌더 호출 사용 예 Function Integer LogonUserA(String lpszUsername,String lpszDomain,String lpszPassword,integer dwLogonType,Integer dwLogonProvider,REF long phToken) Library "advapi32.dll" 또는 이렇게 선언해서 사용해도 된다. Function boolean LogonUser(String lpszUsername,String lpszDomain,String lpszPassword, ulong dwLogonType,ulong dwLogonProvider,REF ulong phToken) Library "advapi32.dll" alias for "LogonUserA" ul.. 2010. 7. 2.
[IT] ASP.NET 자바스크립트 submit() 함수기능 __doPostBack() 과 Page.GetPostBackEventReference()함수 ASP.NET 개발을 할 때 submit() 기능을 사용하려고 하면 에러가 발생하는 경우가 있다. 이럴 때 버튼 이벤트 등을 이용해서 자바스크립트로 Behind code(.cs)의 메서드를 실행해야할 때가 발생한다. 이럴 경우 보통은 aspx 화일에서 자바스크립트로 __doPostBack() 메서드를 정의해서 사용하면 가능한다. 하지만, 이보다 더 좋은 방법이 있다. __doPostBack() 메서드는 .net에서 자동 생성하는 부분으로, 개발자가 별도로 작성하여도 바뀔 가능성이 있다. 또한, .net에서 자동으로 생성하지 않는 경우도 발생한다. 자바스크립트에서 behind code의 메서드를 실행하고 싶을 때는.. 2010. 4. 20.
[IT/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 .. 2010. 4. 13.
[IT/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 string Value() { .. 2010. 4. 13.
반응형