본문 바로가기

.NET/MVC.NET

(51)
MVC4 Series 1
mvc3 razor 엔진 이슈 View에서 서버코드가 삽입될시 바로 밑에 tag 닫기가 없으면 에러가 납니다. 신기하죠? 저도 신기합니다. 개발자 분들은 위의 이슈사항을 숙지하여 주시기 바랍니다. 가장좋은 방법은 xhtml의 표준을 지켜서 markup하는 것입니다. 오늘도 좋은 하루 되세요.
Autofac Multitenency 멀티 컨트롤러 대체하기 mtc.ConfigureTenant("특정아이디", d => { d.RegisterType().As(); d.RegisterType().As(); }); 위와 같이 하면 간단하게 해결 됩니다.
Localization in ASP.NET MVC with Griffin.MvcContrib http://www.codeproject.com/Articles/352583/Localization-in-ASP-NET-MVC-with-Griffin-MvcContri 위에서 퍼온 글입니다. Demo project Project site @ gitub Online documentation Introduction Griffin.MvcContrib is my contribution project for ASP.NET MVC3 which contains several features. This article will go through the localization features that exists in the framework. The features consists of the following (wh..
Long Polling with MVC.NET http://blogs.claritycon.com/blog/2011/04/12/roll-your-own-mvc-3-long-polling-chat-site/위의 사이트에서 퍼온 글입니다. 12 Apr 11 Roll Your Own MVC 3 Long Polling Chat Site By: Jacob Gable I recently read a great article on WebSocket alternatives in MVC by Clay Lenhart and decided to write up a quick proof of concept C..
potentially dangerous Request.Form value was detected 에러일 경우 MVC에선 폼에 html을 넘겨서 디비에 저장해야 할경우 위의 같은 에러가 납니다. 어떻게 해야할까요 ? 답은 Action Method에 아래의 Attribute 를 삽입해 주면 됩니다. ValidateInput(false)
MVC.NET IEnumerable<T> Model Bind하기 프로젝트를 하는데 테이브에 보여지는 모든 데이터값들을 서버로 보내야 하는 일이 있었습니다. 어떻게 할까 하다가 옛날(별로좋지않음) 방식으로 해보았습니다. View단에서 아래와 같이 코딩을 합니다. @functions{ string CreateName(string propertyName, int index){ string modelName = "inputModel"; return String.Format("{0}[{1}].{2}", modelName, index, propertyName); } } @foreach (var item in Model) { } 위의 코드를 보면 functions에 규칙적인 form data에 이름을 부여하는 것을 알수 있습니다. 저렇게 하여 서버단에서 inputModel을 받는..
ASP.NET MVC 3 Real Time Collaborative Apps with SignalR 좀 나온지 됐지만 ㅋㅋ 한번 꼭 읽어보세요(시간있을때 번역해 보겠습니다.^^;일때문에) http://www.dotnetcurry.com/ShowArticle.aspx?ID=780 위에서 퍼온 글입니다. 여기서 우리는 blog app를 MVC3와 Signal$을 이용하여 개발할것입니다. In this article, we’ll create a simple blog app using ASP.NET MVC 3 and SignalR, 이러한 기술은 여러 유저에게 공통의 기사를 리얼타임에 볼수이게 해 줍니다. SignalR은 무엇인가? 사전적으로 – 클라이언트와 서버의 persistent 커넥션을 유지하기위한 비동기 프레임워크 입니다. 사전적이아닌 – 서버사이드의 ASP.NET와 JavaScript에 탑 레이어에..