본문 바로가기

분류 전체보기

(4536)
aspConf 2012 다운로드 가능합니다. 2012 asp컨퍼런스가 열린건 아시죠? 그 동영상이 올라왔네요 물론 영어로 되어있죠 다운로드 받아서 모바일에 넣어서 다니면 될것같네요 한번 꼭 보세요 영어를 모르시는 분도 동영상 코딩만 봐도 많이 도움이 될듯 합니다. http://channel9.msdn.com/Events/aspConf/aspConf?sort=sequential&direction=desc
WMI를 사용하여 프로그램 삭제하기 이글은 아래의 글을 번역한 겁니다.http://www.codeproject.com/Tips/428199/Uninstalling-applications-programmatically-with-WM Introduction최근에 나는 application을 프로그램으로 삭제하려했다. 많은 개발자들이 registry key 접근방법으로 지우려하는것을 인터넷을 뒤져서 알았다.(uninstall string을 찾아서 Windows installer에게 전달해 주는것 )그라나 이러한 방법은 많은 단점들이 있다. uninstall string이 어디있는지 그리고 OS(86x,64x)에 따라서 그위치가 틀릴수 있기 때문이다. 그리하여 WMI를 사용하여 이러한 문제를 해결하려 한다. Using the code문저 Syst..
EF4 사용시 Navigation Property 로딩 EF4에서는 DB의 관계가 Navigation Property로 표현이 되는데요, 아래와 같은 방법으로 데이터를 로딩해서 개체의 데이터를 채울 수 있습니다. public teb_plan_request GetCPAPlanRequestBySeq(int requestSeq) { { using (edubankEntities edubank = new edubankEntities()) { teb_plan_request tpr = edubank.teb_plan_request.FirstOrDefault(x => x.request_seq == requestSeq); edubank.LoadProperty(tpr, "aaaa"); edubank.LoadProperty(tpr, "bbbb"); edubank.LoadPrope..
Where 조건에서 Exists 써보기 where 1=1and exists(select 1 where @book_nm = ''union allselect 1 where @book_nm '' and tb.book_nm like + '%' + @book_nm + '%')
c# 천자리 단위 콤마 넣기 String.Format("{0:n}", 1234); number.ToString("#,##0"); string.Format("{0:#,#}", num) function GetNumberWithQ(Price) { var myNumber = Price.toString(); // Price Is Your Namber Your Number var myResult = ""; for (var i = myNumber.length - 1; i >= 0; i--) { myResult = myNumber[i] + myResult; if ((myNumber.length - i) % 3 == 0 & i > 0) myResult = "," + myResult; } return myResult; }
How to troubleshoot ASP.NET application hang with memory dump http://www.codeproject.com/Articles/384647/How-to-troubleshoot-ASP-NET-application-hang-with 위에서 퍼온 글입니다.IntroductionA production IIS server has been reported hang once a day. We tried every possible ways to find and remedy the situation with no luck. Fortunately, from memory dump, we found some clues that eventually pinpoint the source of problem. In here, I will put all the information and exp..
Jquery를 이용해서 두가지 Attribute로 Element찾기 만약 두개의 엘레먼트가 있다 이때 input type이 text이고 value가 1인 요소를 어떻게 찾을수 있을까 간단하게 이렇게 하면 된다. $('input[type="text"][value="1"]') 위와같이 query를 하면 찾고자 하는 요소를 얻을 수 있다.
ASP.NET MVC 3 을 이용한 파일 다운로드 http://www.dotnetcurry.com/ShowArticle.aspx?ID=807 위에서 퍼온 글입니다. 여러분들이 아시다시피 컨트롤러의 action 메서드는 ActionResult라는 추상화된 객체를 반환하게 되어있습니다. 여러 클래스들이 ActionResult를 상속받아서 구현이 되어있는데 그중에 하나가 바로 FileResult입니다. 이 클래스는 binary 파일의 컨텐츠를 리스폰스 해주는 역할을 해줍니다. 아래의 예제를 통해 우리는 어떻게 AfileResult action을 통해 파일을 다운로드 받는지 알수 있습니다. Step 1: VS2010을열고 ASP.Net MVC3 프로젝트를 'MVC3_Returning_Files'라고 만듭니다. Step 2: 이 프로젝트에 새로운 폴더 'File..