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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -