I have been working on a MVC project which I will be using to save and manage all my code snippets. I get this plan in my head when my 160GB of HDD got crashed which holds most of my work and code. I started writing the web application in web forms and almost got it completed, but eventually changed my mind and started writing the application from scratch in MVC 3 with Razor view engine.As I will be making this application online, I am sure to receive some comments when I share my code with others. To know what people thing about the code I published, I must have a commenting system for my application to know what people think. Instead of writing my own comment mechanism I would rather want to go with DISQUS commenting system. For my blog I am not using DISQUS, but for this application I will use DISQUS as it will save my time and is also a reliable way to manage comments.
Working with MVC is fun and even more when you are working with helper classes. Read my blog post on Working with Microsoft Web Helpers in ASP.NET to know more about helper classes and their features and how they can save your time in developing applications. I am going to show you how you can integrate DISQUS commenting system in your MVC application with ease. To get started, register a DISQUS account
Create a new MVC project in Visual Studio and without any delay go to NuGet console and type in the below command to add the DISQUS helper class.
- Initialize: This method will help us to initialize the commenting system. It accepts your short forum name as a parameter which you have created at the time of creating your account at DISQUS.
- ShowComments: This method accepts the name of the page.
@{
Disqus.Initialize("shortforumname");
}
@Disqus.ShowComments(pageIdentifier: "post123")




paintball wallpaper
Sep 28, 2011 -
does this module take advantage of teh "disqus 2.0" features which allow your site to expose the comments to search engines? as is discussed (disqus?) here- http://blog.disqus.net/2008/08/12/introducing-the-new-disqus/
prashant
Oct 1, 2011 -
As we are using Nuget to integrate DISQUS on our web app, we need to make sure that the Nuget package is updated with the latest DISQUS code. It will then have all the features of the latest DISQUS 2.0.
sandesh daddi
Mar 29, 2013 -
Wow…nuget package…..really happy after reading this.
Does this system provide me a functionality to validate comments before publishing?
Thanks
sandesh daddi