asp.net mvc 3 - Stop Menu showing on log-in page -


i developing asp.net mvc 3 application , have referenced [authorise] method show log-in on entry. although stops use of top menu (at moment standard "home "index") still visible , wish hide them log-on screen.

any appreciated.

thank in advance.

chri3

try this

@if(user.identity.isauthenticated) {  <div>code menu</div> } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -