show-notice
hide-notice
Showing posts with label Authentication. Show all posts
Showing posts with label Authentication. Show all posts

Friday, 5 July 2013

HttpContext.Current.User.Identity.Name returns null or empty string value

0 comments


Introduction

Here I will explain how to solve problem of HttpContext.Current.User.Identity.Name returns null or empty string value.

Dsecription

I have one requirement like getting system username based on that check the permissions of user if user has sufficient permission I need to allow that person to view the particular page otherwise I don’t want give chance to show the page for that I have written code to get username like this 

Thursday, 4 July 2013

how to get username in login control using asp.net membership

0 comments


Introduction

Here I will explain how can we get username and userid of currently logged user in asp.net membership.

Description

I am working on application by using login control in asp.net at that time I got requirement like getting username and user id of logged in user for that I have written code like this to get logged in user username and userid in asp.net membership.
Design by Gohilinfotech | www.gohilinfotech.blogspot.com