Browse by Tags

All Tags » Security (RSS)

Automatic creation of membership users and saving the result to csv file by anas

While working with Membership and roles providers, you may need to create the users based on your data and give them a random password.For example, you may have a table with customers and you want to give each customer a user/password to login to your...
Filed under: ,

Login control FAQ : by anas

I have posted a thread on the forums which list all the FAQ about the Login control. This is the thread: http://forums.asp.net/t/1403132.aspx

Displaying Online users using Linq-to-entities. by anas

A frequently asked question on the forums is "how to display the Online users when using Membership ? One possible way is to get the whole users and iterate through the collection and add the online user to a new temporary collection that holds the...
Filed under: , ,

Hiding some page controls from the Unauthenticated users by anas

If you want to hide controls in the page that is being displayed by the logged in and not logged in users , then you can check the Request.IsAuthenticated property which returns true if the user is logged in ( of course you must be using Windows or Forms...
Filed under: ,

Sharing ASP.NET security Database between different applications by anas

This blog will mention the steps that is required to share the asp.net security database between different applications. The steps to follow : Since you are going to use one database for many applications , it will not be practical to have the database...
Filed under: ,

Preventing the Deleted Users from logging to your site by anas

while working with Forms Authentication and Membership services , if the user selects " remember me " check box in the login dialog ,the runtime will create a persistent authentication cookie for him, the persisted cookie is responsible to keep the user...
Filed under: ,

Redirecting the Users to different page based on there roles by anas

Hi, While working with login control , you may need to redirect each user for a different page based on there roles.To do this , you can handle the LoggedIn event of login control( which will be fired after the user logged in successfully) protected void...
Filed under: ,
More Posts