I would like to know how to check which action the current view displays (from the current view).
For example, to check if the controller myController called rendering (I think), I can write:
<% if(ViewContext.Controller is myApplication.Controllers.myController)%>
In fact, I want to use the same View model for two action methods, for example:
<% If( First Action rendered this view){%> // Display this <%} else {%> //Display that <%}%>
thanks for the help
source share