2018-04-24

Getting Current Controller/Action in MVC

Getting Current Controller/Action in MVC



@{
    var controller = ViewContext.RouteData.GetRequiredString("controller");
    var action = ViewContext.RouteData.GetRequiredString("action");
}




https://stackoverflow.com/questions/6398189/getting-current-controller-action-from-within-partial-view

1 comment:

  1. 마르코프 체인은 통계 및 컴퓨터 과학에서 카드 셔플, 원자의 진동, 주가 변동 등 임의의 사건에 나타나는 순서를 처리할 때 주로 사용된다. 각각의 경우, 미래의 "상태"- 카드 더미의 순서, 원자의 에너지, 주식의 가치-는 이전에 일어난 일이 아니라 지금 일어나고 있는 일에만 달려 있다. 마르코프 체인에는 이전에 있었던 것에 대한 "기억"이 없다는 뜻이다. 아사프는 마르코프 체인이 카드 셔플링을 설명하기 좋은 기법이라고 했다. 온라인카지노게임 일곱 번째 셔플의 결과는 여섯 번째 셔플로 나온 카드 순서에만 의존하지, 그 전에 다섯 번 셔플 결과에 의존하지 않기 때문이다.

    ReplyDelete

Setup VNC on Ubuntu 20.04

  sudo apt update sudo apt install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server sudo apt install tightvncserver vncserver...