Documentation Center

Integrating UGC on a .NET website

Integrate User Generated Content with Audience Manager Contacts, or with your custom contacts stored in your custom user management system, from a .NET website.

Procedure

  1. Access the SDL Tridion Sites installation media.
  2. Navigate to the folder Content Delivery\resources\samples\ugc\dotnet\.
  3. Open the file ChangeProfile.aspx.cs for editing.
  4. Open your own ASP.NET webpage (or underlying .aspx.cs file) that your visitors use to log in and to change their profile, for editing.
  5. From ChangeProfile.aspx.cs, copy the using statements at the top to the top of your .NET webpage.
  6. Find the static method SyncUGCUserWithContact from ChangeProfile.aspx.cs to your webpage.
  7. In your webpage, find the places in your code where the user has successfully logged in, and where the user has changed his or her profile. In this location, make the call to the method you just added by calling SyncUGCUserWithContact.
  8. Save and close your ASP.NET webpage.