Last post Apr 02, 2013 09:07 AM by ssvikramuk
Apr 02, 2013 08:20 AM|ssvikramuk|LINK
Any way to call firstname instead of calling email id
WebSecurity.CurrentUserName, after logged in.
Apr 02, 2013 08:38 AM|Abhishek Luv|LINK
You will have to write your query to fetch the firstname according to the respected logged in user.
You can create file like _GetFirstName.cshtml and then open a database connection.
Next write the query to fetch the firstname
and then display it.
In order to display the firstname you will
have to render the above page using
the RenderPage method n then pass in the
name of the above file i.e _GetFirstName.cshtml.
Apr 02, 2013 08:52 AM|Abhishek Luv|LINK
Hope this helps.
Apr 02, 2013 09:07 AM|ssvikramuk|LINK
Thanks a Lot Abhishek!.