asp.net mvc - how to set master layout from controller -


is there way call master layout view controller?

have tried

public actionresult validate() {         return view("~/views/shared/_layout.cshtml");     } 

but not working.

their overload in view method

return view ("nameofview",mastername:"viewname"); 

regard's shanker paudel


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -

how to run a query SQL in node.js mysql -