Return single view on every controller action in asp.net mvc3 -
i want return same view every controller action request in asp.net mvc3 .what best possible way achieve this. dont want write view name in every controller action
you use
return redirectoaction(actionname)
so may have like
<actionname("pagex")> _ function pagex() actionresult return redirecttoaction("commonview") end function <actionname("pagey")> _ function pagey() actionresult return redirecttoaction("commonview") end function <actionname("pagez")> _ function pagez() actionresult return redirecttoaction("commonview") end function <actionname("commonview")> _ function commonview() actionresult return view() end function
Comments
Post a Comment