본문 바로가기

ASP.NET

(6)
Crash덤프만들고 디버깅하기 Article ID: 892277 - Last Review: May 18, 2007 - Revision: 2.4Troubleshooting ASP.NET using WinDbg and the SOS extensionView products that this article applies to.ASP .NET Support Voice ColumnTroubleshooting ASP.NET using WinDbg and the SOS extensionTo customize this column to your needs, we want to invite you to submit your ideas about topics that interest you and issues that you want to see ad..
ASP.NET의 10가지 유용한 프로퍼트들(6가지만 언급 4가지는 링크를 통해 확인 바람) http://www.codeproject.com/KB/aspnet/usefulpropertes.aspx Introduction개발자들은 매번 컨트롤들과 씨름을한다. 여기서는 10가지 유용한 프로퍼티 팁들을 소개한다. 1、ClientIDMode서버 컨트롤이 랜더링하는 동안 컨트롤들의 아이디는 자동으로 생성됩니다. 자동으로 생성된 아이디 때문에 스크립트를 작성할때 개발자들은 엘러먼트 접근에 많은 어려움을 겪게 되었는데 이러한 아이디 생성을 4가지의 모드를 노출하여 개발하기 편하게 생성할수 있습니다. 4가지 모드는 아래와 같습니다. 일괄적인 셋팅은 아래와 같이 web.config에 설정해 주면 됩니다. AutoID: 기존에 자동생성되는 것같 아이디 생성규칙이 똑같음 Static: 개발자가 입력한 아이디로 생성..
IDictionaryEnumerator 사용하기 IDictionaryEnumerator 는 Hashtable과같은 none generic dictionary 요소들을 열거합니다. IDictionaryEnumerator의 소스를 들여다 보면 다음과 같습니다. public interface IDictionaryEnumerator : IEnumerator { IDictionary Entry { get; } object Key { get;} object Value { get; } }위의 Entry는 현 dictionary entry의 Key, Value값을 갖고 Key는 현 dictionary entry의 key과 Value는 현 dictionary entry의 value값을 갖습니다. Hashtable collection은 아시다시피 key, value한쌍..
소수점 자리 연산 오늘은 소수점 자리 연산에서 개발자들이 자주 놓치는 부분에 대해서 얘기해 보고자 합니다. 저도 오늘 알았네요 기본이 없어서 double a = 2.11; double b= 1.11; double c = a+b; Console.Write(c == 3.22) 위의 결과가 과연 뭘까요? 저는 true인줄 알았는데 소수점 자리는 비트 연산을 해서 false가 나오더군요 ㅋㅋ
FileUpload한 Excel Data를 Ms Sql에 업데이트 하는 방법(Open Source이용) http://exceldatareader.codeplex.com/ 1.위의 라이브러리를 다운받아 프로젝트에 참조한다. 2. 업로드된 데이터가 있는지 확인한다. DataSet result; using (Stream stream = Request.Files[0].InputStream) { IExcelDataReader excelReader; if (fileExtension.Equals("xls", StringComparison.OrdinalIgnoreCase)) excelReader = ExcelReaderFactory.CreateBinaryReader(stream); else excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream); excelReader..
새로운 Editor가 릴리즈 됐습니다. ML Editor가 추가된 Ajax Control Toolkit이 릴리즈 됐습니다. 다운로드는 아래의 주소에서 받을 수 있습니다. http://AjaxControlToolkit.CodePlex.com 형태는 아래의 이미지와 같습니다. 아래의 코드는 위의 에디터를 삽입하는 코드입니다. Simple