You can use the Asp.net profile provider to save the information. Follow the instructions for using the built-in SqlProfileProvider. By default, SqlProfileProvider will create tables in the aspnetdb.mdf file, so you can store everything in one place. You can access the profile provider as a property in the HttpContext.
Edit: Best link for ASP.Net profile information
Using the profile provider, you do not need to worry about calling the database or identifying the current user. All this is done on your behalf. Double check the documentation, because the following may be a little off.
You add the fields you want to your web.config, inside <system.web> . In your case, this will be the necessary contact information.
<profile> <properties> <add name="Address" /> <add name="City" /> <add name="State" /> <plus other fields ... /> </properties> </profile>
Then you can access HttpContext.Profile.Address, etc., and the provider will take care of binding everything to the current user.
Adding and editing information means displaying the form. Viewing details is simply a display of all the fields saved in the previous form message.
NerdDinner's source and tutorial are well worth checking out if you are completely new to MVC.
source share