Introduction

Microsoft WebMatrix provides an easy way to get started with web development, and together with new Razor syntax for ASP.NET Web Pages it includes everything you need to get your web site up, running and integrated with many other sites and networks, in a short period of time. The WebMatrix helpers are designed to make your life easier when creating web sites. They provide you a simple and consistent way of performing common web development tasks that otherwise would require a great deal of custom coding. With a few lines of code you should be able to secure your web site using membership, store information in Windows Azure Storage, integrate your site with Facebook, among others things.

The GetSatisfaction Helper for WebMatrix allows you to easily integrate GetSatistaction feedback functionality into your site. It provides a set of widgets for your users to share their ideas, questions, problems, and praises.

getsatisfaction-helper

Getting Started in 60 Seconds

The helper mainly consists of a GetSatisfaction.cshtml file that should be placed in the App_Code folder of your WebMatrix site. To use the helper follow these steps:

  1. If you haven't got an account, sign up to start a free community. Once you’ve done, navigate to the Profile Information and take note of the company name specified in the "Get Satistaction URL" field:
    Example: http://getsatisfaction.com/people/your_company_name
  2. Download the helper package and extract its content in the root folder of your WebMatrix site.
  3. Add the following line to the _AppStart.cshtml page of your WebMatrix site, replacing the placeholder with your company name.
    @{
        GetSatisfaction.Initialize("{your_company_name}");  
    }
  4. In any WebMatrix page, add the following line to show a GetSatistaction feedback tab in your page.
    @GetSatisfaction.GetFeedbackTabWidget()

Documentation and Samples

Helper reference is available here. Optionally, you can download a sample WebMatrix web site based on the Bakery template, where you can see the helper in action. To download and run it with Microsoft WebMatrix, follow these steps:

  1. Download the sample site from the Downloads section. Extract the contents and open the folder in WebMatrix.
  2. Complete your GetSatisfaction company name in the _AppStart.cshtml page.
  3. Run the sample!

Other Useful Resources

Don't miss the helper's getting started screencast.

You can find more information about GetSatisfaction in http://getsatisfaction.com/explore/introduction.

Learn more on WebMatrix, ASP.NET Web Pages and the Razor Syntax with the WebMatrix tutorials.

 

Last edited Dec 27, 2010 at 6:17 PM by jsenior, version 8