Controller.View Method VS Controller.RedirectToAction Method View() 와 RedirectToAction() 메소드 모두 화면을 전환 한다는 기능적 측면에서는 동일한다. 하지만 View()는 동일한 Controller 내에서만 화면 전환이 가능하고 RedirectToAction()는 Controller와 상관없이 화면 전환이 가능한다. 측 동일한 Controller 에서의 화면 전환 이라면 View()를 사용하고 그렇치 않다면 RedirectToAction()를 사용하면 된다.
enum Season { Spring, Summer, Autumn, Winter } enum ErrorCode : ushort { None = 0, Unknown = 1, ConnectionLost = 100, OutlierReading = 200 } enum 과 switch 문 활용 예) public enum WhiteIpRequestState { NoRequest = 0, Requested = 1, Approved = 2, Rejected = 3 } WhiteIpRequestState whiteIpRequestState = ... switch(whiteIpRequestState) { case WhiteIpRequestState.NoRequest: case WhiteIpRequestState.Rejec..
Enter your name: Enter your email: The HTML element represents a document section containing interactive controls for submitting information. action The URL that processes the form submission. This value can be overridden by a formaction attribute on a , , or element. This attribute is ignored when method="dialog" is set. enctype If the value of the method attribute is post, enctype is the MIME ..
📌ViewBag Gets the dynamic view data dictionary. Property Value Object The dynamic view data dictionary. // in Controller public ActionResult Index() { List colors = new List(); colors.Add("red"); colors.Add("green"); colors.Add("blue"); ViewBag.ListColors = colors; //colors is List ViewBag.DateNow = DateTime.Now; ViewBag.Name = "Hajan"; ViewBag.Age = 25; return View(); } // in View 📌ViewData Get..
IActionFilter ? action의 실행과 관련된 필터입니다. OnActionExcuted ? "action"을 실행한 후 "action" 결과 전에 호출됩니다. OnActionExcuting ? 모델 바인딩이 완료된 후 "action"이 실행되기 전에 호출됩니다. 활용 1) public class ActionFilter : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { // 로그인 여부 체크 및 권한 체크와 같은 다양한 로직을 적용 할 수 있다. // filterContext.Result = new RedirectResult(Url); var controlle..
A type of view that generates views from an underlying collection of data. func onDelete(perform: Optional Void>) -> some DynamicViewContent Sets the deletion action for the dynamic view. func onInsert(of: [UTType], perform: (Int, [NSItemProvider]) -> Void) -> some DynamicViewContent Sets the insert action for the dynamic view. func onMove(perform: Optional Void>) -> some DynamicViewContent Sets..
- Total
- Today
- Yesterday
- 공백제거
- App Store
- mssql
- 진수 변환
- MainActor
- FileUpload
- System.Diagnostics
- hyper-v
- .submit()
- 특정 문자를 기준으로 자르기
- await
- 아이폰
- 문자 자르기
- 앱 스토어
- 상품 등록
- system.io
- In App Purchase
- 제품 등록
- html tag
- Task
- 명령어
- trim
- async
- nl2br
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 28 | 29 | 30 | 31 |