일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- microsoft
- 리포팅서비스
- oracle
- IIS
- ASP
- 엑셀
- c#
- jQuery
- 윈폼
- windows
- MSSQL
- Winform
- 윈도우
- javascript
- DataGrid
- 자바스크립트
- 오라클
- 태그를 입력해 주세요.
- attr()
- Excel
- CONVERT()
- SSRS
- replace()
- 단축키
- 이클립스
- 마이크로소프트
- aspnet
- 비주얼스튜디오
- MS
- 프로시저
- Today
- Total
목록c# (33)
DJ메탈짱™의 Free Style
아래 예제는 Element 기준으로 , Element 값을 반환하는 방법인데… ElementAt(1) 메소드를 통해 연속적으로 동일하게 있는 Element가 하나면 index 예외오류가 발생함. 그럴 때 사용하는 메소드는 ElementAt à ElementAtOrDefault() 을 사용하면 해결됨. 정보 1 2 정보 3 var xmlRlt = (from xml in xmlDoc.Descendants("body") select new { columnCharacteristic1= (string)xml.Element("aaa").Value, //만약 ElemenetAt(1)이 없다면 공백 반환. columnCharacteristic2= (string)xml.Elements("bbb").Elemen..
동일한 Depth의 Element의 값들을 반환하는 경우 아래 (예제2) 코드 참고. (예제1)처럼 Descendants을 통해서 반복문의 경우에는 동일한 Element의 값을 반환하지는 않는다. A W A B A C A D W A (예제1) StringBuilder sb = new StringBuilder(); var rltLinq = from config1 in xmlDoc.Descendants("cabinColumnDetails") select new { cabinColumnDetails = (string)config1.Element("columnCharacteristic").Value }; foreach (var rlt in rltLinq) { sb.AppendLine("cabinColumnDet..
xml파싱하여 XML Document로 설정하는 (방법1) - \bin\Debug\ 에 xml파일을 copy하여 설정하는 방법. XDocument xmlDoc = XDocument.Load(@"samplexml.xml"); (방법2) – Resource에 xml파일을 추가한 방법. XDocument xmlDoc = XDocument.Parse(Properties.Resources.samplexml); var source = from aa in xmlDoc.Descendants("root")// element의 기준점 select new { cabinClass = aa.Descendants("aaa").ElementAt(0).Value,// root하위에 aaa element의 value cabinCapa..
마이크로소프트에서 Visual Studio 2008(.net Framework 3.5 SP1) 에 MS Chart Control(이하 MSChart) 을 사용할 수 있다는 소식은 이미 최원영 과장님의 세미나를 통해서 접하기만 했지 직접 사용해보지 않아 의아해 했었는데, 새롭게 진행하는 프로젝트에서 사용하기 위해 자료를 찾아봤는데, 윈폼에서도 사용가능 하다는 것을 접하여 정보를 공유하기 위해 지식 등록 해봅니다. 아래 기술자료 사이트 가시면 샘플 자료를 다운 받으실 수 있고, 실제 설치를 하시고 실행(WinFormsChartSamples.exe)을 해보시면 도움이 많이 되실 겁니다. 단, MSChart를 사용하기 위해 ADD ON을 설치하셔야 하며, 아래 사이트를 참고하시면 됩니다. Microsoft .N..
/// /// 현재시간을 기준으로 생년월일을 가지고 만 나이 계산 /// /// 생년월일 /// 현재시간 /// 나이 public static int GetAge(this string strDob, DateTime dtKST) { // 현재 서버시간(KST) DateTime dtNow = Convert.ToDateTime(dtKST); // 선택한 날짜 Convert수정 DateTime dtDOB = DateTime.ParseExact(strDob, "yyyyMMdd", null); int iAge = 0; int birth_year = dtDOB.Year; int birth_month = dtDOB.Month; int birth_day = dtDOB.Day; int now_year = dtNow.Yea..
정규식, 앞3자리=영문(대소문자 가능), 뒤4자리=숫자만 허용. MatchExpression=@"^[A-z]{3,3}\d{4,4}$"
이제는 Dundas Chart를 비주얼 스튜디오에서 사용. 아래 URL에서 Web Form, Window Form 샘플 자료 제공해줌. - ScottGu's Blog http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx - Sample Download https://visualstudiogallery.msdn.microsoft.com/BF02B581-039F-4E6A-BA12-5C699CE6D16D
private string StripHTML(string htmlString) { //This pattern Matches everything found inside html tags; //(.|\n) - > Look for any character or a new line // *? -> 0 or more occurences, and make a non-greedy search meaning //That the match will stop at the first available '>' it sees, and not at the last one //(if it stopped at the last one we could have overlooked //nested HTML tags inside a big..
// 2011/07/13 - LINQ query (SUM)var tSum =from p in db.TBSimulation // from절ywhere p.USERID == this.hdUSERID.Text && p.GROUPID == "A" // where절yselect p.RESULT; // select절y // Total Profit this.lblTPROFIT.Text = tSum.Sum().ToString();