ajax - ASP.NET MVC 4 shared page element containing user data -


in asp.net mvc 4 application, have log in box, included in "_layout" view , shared between pages. after successful authentication, present basic data logged in user (first name, score, etc.) instead of log in box. of course, needs visible on every page. best method of implementing this? how can data? below can see screenshots of box , want achieve.

before log in:

before log in

after log in:

after log in

i using following:

@if(!request.isauthenticated) {    //partialview log in form } else {  // partialview after login } 

Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -