asp.net/ajaxlibrary
ASP.NET AJAX Control Toolkit Welcome to the ASP.NET AJAX Control Toolkit. Choose from any of the samples on the left to see the live […]
ASP.NET AJAX Control Toolkit Welcome to the ASP.NET AJAX Control Toolkit. Choose from any of the samples on the left to see the live […]
Creating custom, language specific error pages in IIS – benjamin perkins – Site Home – MSDN Blogs.
iPhone 개발, 웹앱, SenchaTouch, Corona, Cappuccino, Phonegap, Mono Touch, xcode, ios, iphone.
클라이언트 ( )에서 잠재적 위험이 있는 Request.Form 값을 발견했습니다. 사용 중인 .NET 프레임워크 버전이 4.0이라면 web.config 에 아래 코드를 넣어주는 것으로 해결이 가능합니다. <system.web> <httpRuntime […]
C# Abstract Keyword.
//요일구하기 public static string GetDay(string FLI_DAY) { string tempGetDay = string.Empty; switch (FLI_DAY) { case “MO”: tempGetDay = “월”; break; case “TU”: tempGetDay = “화”; […]
XmlDocument doc = new XmlDocument(); doc.LoadXml(xmlPSW5); XmlNodeList node = doc.GetElementsByTagName(“ETR_INF”); for (int i = 0; i < node.Count; i++) { //attribute 추가 XmlAttribute newAttribute = […]
참조 : http://stackoverflow.com/questions/4791794/client-to-send-soap-request-and-received-respons
______________C# sample________________
|
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 |
using System; using System.Collections.Generic; using System.Xml; using System.Xml.Xsl; using System.Xml.XPath; using System.IO; - 중간 생략 - public XmlElement ...... { XmlDocument docXml = new XmlDocument(); XslCompiledTransform xslt = new XslCompiledTransform(); StringWriter stringWriter = new StringWriter(); docXml = new XmlDocument(); docXml.PreserveWhitespace = false; docXml.LoadXml(resultXML); xslt.Load(Server.MapPath("XSLTDefault.xslt")); xslt.Transform(docXml, null, stringWriter); docXml.LoadXml(stringWriter.ToString()); return docXml.DocumentElement; } |
두 날짜 비교해서 달수 구하기따로 함수가 없어 만들었는데. 문제는 달마다 마지막 일이 다르다는것=> MS에서도 모호해서 함수를 만들지 않은 것 같음
대문자 2글자 추출
|
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 |
using System; using System.Text.RegularExpressions; class Program { static void Main() { // Part 1: the input string. string input = "abcABC1234567ㅏㅣ"; // Part 2: call Regex.Match. Match match = Regex.Match(input, @"[A-Z]{2}", RegexOptions.IgnoreCase); // Part 3: check the Match for Success. if (match.Success) { // Part 4: get the Group value and display it. string key = match.Groups[0].Value; Console.WriteLine(key); } } } //AB |
다음은 숫자만 추출할때 쓰면 된다. 반드시 숫자가 하나이상 있어야 됨.
|
1 2 3 4 5 6 7 |
using System.Text.RegularExpressions;</code> string strText = "abc1234567ㅏㅣ" string strNum = ""; strNum = Regex.Replace(strText, @"\D", ""); |
=> 1234567 닷넷 정규식에서 \d는 숫자. \D는 숫자가 아닌 문자를 […]
c# – Append XML string block to existing XmlDocument – Stack Overflow.
string strWithTabs = “here is a string with a tab”; // tab-character char tab = ‘\u0009’; String line = strWithTabs.Replace(tab.ToString(), ” “);
XmlDocument doc = new XmlDocument(); doc.Load(“Book.xml”); XmlNodeList node = doc.GetElementsByTagName(“Books”); for (int i = 0; i < node.Count; i++) //방법1 { Console.WriteLine(node.Item(i).SelectSingleNode(“Name”).InnerText); } foreach (XmlNode […]
Dictionanry Update LINQ 로 검색 출력 결과 위 코드를 실행하면 아래와 같은 출력이 예상됩니다. 프로그래밍에서 HashSet은 효율적인 방식으로 유니크한 요소를 저장하는 컬렉션입니다. 특히, 요소가 컬렉션에서 […]
PowerShell 확인 Release 값 전체 기준표 Release .NET 378389 4.5 378675 4.5.1 379893 4.5.2 393295 / 393297 4.6 394254 4.6.1 394802 4.6.2 460798 4.7 461308 […]
//한글자가 숫자(1)인지 체크 public static int NumberCheck(string numString) { int retNumberCheck = 0; long number1 = 0; try{ bool canConvert = long.TryParse(numString, out number1); if […]
oledb connection string Provider=Microsoft.ACE.OLEDB.12.0; Data Source=|DataDirectory|local.accdb;User ID=Admin;Password=;Mode=ReadWrite;”;
Program that uses foreach with LINQ query [C#]
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
using System; using System.Linq; class Program { static void Main() { // An unsorted string array. string[] letters = { "d", "c", "a", "b" }; // Use LINQ query syntax to sort the array alphabetically. var sorted = from letter in letters orderby letter select letter; // Loop with the foreach keyword. foreach(string value in sorted) { Console.WriteLine(value); } } } Output a b c d |
Copyright © 2026 | WordPress Theme by MH Themes