Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You could use an <a href="http://msdn.microsoft.com/en-us/library/system.web.profile.sqlprofileprovider.aspx" rel="nofollow noreferrer">Asp.net profile provider</a> to store the information. Follow the link for instructions on using the built-in SqlProfileProvider. By default, the SqlProfileProvider will create tables in the aspnetdb.mdf file, so you can keep everything in one place. You can access the profile provider as a property on the HttpContext. </p> <p>Edit: Better link for <a href="http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx" rel="nofollow noreferrer">ASP.Net profile information</a></p> <p>Using the Profile provider, you don't have to worry about making database calls or identifying the current user. It's all done on your behalf. Double-check the documentation, because the following might be a little off.</p> <p>You add the fields that you want in your web.config inside <code>&lt;system.web&gt;</code>. In your case, it would be the necessary contact information.</p> <pre><code>&lt;profile&gt; &lt;properties&gt; &lt;add name="Address" /&gt; &lt;add name="City" /&gt; &lt;add name="State" /&gt; &lt;plus other fields ... /&gt; &lt;/properties&gt; &lt;/profile&gt; </code></pre> <p>Then, you can access HttpContext.Profile.Address and so forth and the provider will take care of tying everything to the current user.</p> <p>Adding and editing the information means displaying a form. Viewing the details is just displaying all the fields you saved from the previous form post. </p> <p>The NerdDinner <a href="http://nerddinner.codeplex.com/" rel="nofollow noreferrer">source</a> and <a href="http://tinyurl.com/aspnetmvc" rel="nofollow noreferrer">tutorial</a> are well worth checking out if you're completely new to MVC.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload