"In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application.
Profiles allow you to manage user information without requiring you to create and maintain your own database. In addition, the ASP.NET profile feature makes the user information available using a strongly typed API that you can access from anywhere in your application.
For example, you might want to store the user's postal code so that your application can offer region-specific information, such as weather reports. " -MSDN
In your web.config file you type this:
- <profile>
-
<properties>
-
<add name="PostalCode" />
-
</properties>
-
</profile>
For example, your application's home page might contain a text box that prompts the user to enter a postal code. When the user enters a postal code, you set a Profile property to store the value for the current user, as in the following example:
- Profile.PostalCode = txtPostalCode.Text;
You can also use username instead of postalcode and use that username all along your site.
Wish it works...