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:
after log in:
i using following:
@if(!request.isauthenticated) { //partialview log in form } else { // partialview after login }
Comments
Post a Comment