본문 바로가기

.NET/MVC.NET

(51)
View에서 Controller에 프로퍼티 엑세스 view.cshtml에서 아래와 같이 controller를 엑세스할 수 있다. var baseController = this.ViewContext.Controller as Web.Controllers.BaseController;
HttpContext.User.Identity.IsAuthenticated false로 떨어질경우 폼인증을 제대로 설정했는지 한번 보자 혹시
ASP.NET Identity 2.1 Custom Database(ASP.NET ID 2.1 사용자 지정 데이터베이스) 출처 : http://www.jamessturtevant.com/posts/ASPNET-Identity2.0-Custom-Database/ This is a two post series. You can read the second post at ASPNET Identity Custom Database and OWIN.I have to admit when I first took a deeper look at the ASP.NET’s Identity model in version 2.1 I was a bit overwhelmed. I was looking for a way to authenticate a user against an existing database using Forms authenticati..
같은 이름을 갖는 Element의 값을 받으려면 [HttpPost] public ActionResult HomeworkRegisterPopup(string [] test= null) {return View(); } 참 쉽죠잉
EntityFramework 쿼리 웹으로 노출하기 간단하게 우리 회사의 시스템을 소개하고자 한다. 좋지 않을수도 있지만 혹시 다른 분들에게 도움이 될까해서 올려봅니다. 우리회사의 플랫폼 ASP.NET MVC3 MS Sql 2008 EntityFramework 4.1 Windows Server 2003 회사 내부는 모두 공인 아이피 시스템 환경및 내부 환경은 위와 같다. 간단하게 우리회사는 Linq to EntityFramework는 쓰지 않고 모두 Procedure 중심으로 쓰고 있다. 개발자들이나 DB팀의 다른 팀원들이 회사의 웹페이지를 들어와 프로시저의 속도와 프로시저 이름 및 파라미터들을 확인할수 있다. 화면에 프로시저및 시간을 보여주는 원리 일단 Entity Framework 내의 ExecuteStoreQuery 함수를 써서 프로시저를 콜하고 있..
MVC3 에서 MVC4로 업데이트하기 http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806 위의 링크에 잘 설명 되어있다.
MVC Default Document(기본문서) Problem Solved MVC Applicaiton에서 Default Document를 web.config에 설정에 놨다. 역시나 global.asax에서 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 때문에 기본문서로 넘어가지 않았다. 간단하게 해결하기 위해 routes.IgnoreRoute(""); 위의 같이 해결 하였다. 끝.... 참고(만약 여려분들이 예전의 AjaxLibrayToolKit을 사용하고 있다면 위의 것을 적용하지 마십시오.)
MVC4.0 IIS7.5 처음으로 mvc4.0 어플리케이션을 만들어 설정해 보았다. 하자마자 403 에러 접근 불가 이다. ㅋㅋ 좀 화당했다. ㅋㅋㅋ 왜 접근 권한이 없다고 나올까? 서칭을 하던중 이런것을 web.config에 추가해 줘야한단다.