본문 바로가기

전체 글536

IBatisNet.Common.Exceptions.ConfigurationException inner Exception문구 - The error occurred while loading SqlMap.- Check the parameter mapping typeHandler attribute '' (must be a ITypeHandlerCallback implementation).- The error occurred in . - Check the GetCpMetadataDetailView. IBatisNet.Common.Exceptions.ConfigurationException 에러 대처법 이건 쿼리 나 코드 문제가 아니다 아.. 쿼리 일 수도 있나? 여튼. ibatis 문법 문제다. parameterClass에 바인딩 되는 필드 명(오타 포함) 문제일 수도 있고 형식 문제일 수도 있다.거의.. 2016. 2. 4.
[C#] 파일 읽기와 쓰기 처리 using System.IO; using System.Xml; string strSaveFilePath = "C:\\test.txt"; StreamReader SRead = new StreamReader(strSaveFilePath, System.Text.Encoding.UTF8); string strFileLine = string.Empty; while((strFileLine = SRead.ReadLine()) != null) { Console.WriteLine(strFileLine); } SRead.Close(); string strTest = "testtest"; StreamWriter SWrite = new StreamWriter(strSaveFilePath,false,System.Text.Enc.. 2016. 2. 4.
DateTime.ToString 메서드 (String) 출처: msdn using System; public class DateToStringExample { public static void Main() { DateTime dateValue = new DateTime(2008, 6, 15, 21, 15, 07); // Create an array of standard format strings. string[] standardFmts = {"d", "D", "f", "F", "g", "G", "m", "o", "R", "s", "t", "T", "u", "U", "y"}; // Output date and time using each standard format string. foreach (string standardFmt in standardFmts) .. 2016. 2. 4.
Decimal.ToString 메서드 (String) 출처: MSDNdecimal value = 16325.62m; string specifier; // Use standard numeric format specifiers. specifier = "G"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: G: 16325.62 specifier = "C"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: C: $16,325.62 specifier = "E04"; Console.WriteLine("{0}: {1}", specifier, value.ToString(spe.. 2016. 2. 4.
C# Get Web Source / 웹사이트 소스 가져오기 using System.Net; //... using (WebClient client = new WebClient ()) // WebClient class inherits IDisposable { client.DownloadFile("http://yoursite.com/page.html", @"C:\localfile.html"); // Or you can get the file content without saving it: string htmlCode = client.DownloadString("http://yoursite.com/page.html"); //... } 2016. 2. 4.
XML 특수문자 안되는 특수문자: !@#$%^+\|:;{}[]되는 특수문자: *_/변환시킬수 있는 특수문자: " , &, ' , 2016. 2. 4.