Dionoid

ALL WEB MUST SCALE!
QuickBlog: Free VS2005 template for a weblog application

Inspired by Scott Guthrie's MyLists example webapplication, I've made a simple (but fully functional) weblogging application in Visual Studio 2005, which you can download here (all sources included).

Add this template to your VS2005 VWD ProjectTemplates folder (or just unzip it somewhere and open it with Visual Web Developer). The Visual Web Developer C#-ProjectTemplates folder is default located in \My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer\CSharp.

Note that I've created this weblog example-application in only 4 hours(!), and it contains not a single line of code.
Yep, that's right: 0 lines of code!!!  I accomplished this by using:

  • SQL2005 Database designer of VS.NET 2005 (no code)
  • TableAdapter Wizard to create typed datasets (no code)
  • ObjectDataSources using the typed datasets (no code)
  • GridView and DetailsView controls to create/read/update/delete postings and comments (no code)
  • FreeTextBox for richtext creation/editing of postings (no code)

Features of this QuickBlog webapplication:

  • Master- and Contentpages
  • Table-less design
  • Skinning en Theming
  • Creating and editing of Postings (by admin)
  • Readers can add Comments (admin can remove them)
  • Login control, Membership
  • A lot of GridViews and DetailsViews
  • RSS feed

Some screenshots:

Visitor writing a comment:

After logging on, the admin can manage postings and comments (or create a new posting):

Published Friday, February 10, 2006 10:03 AM by Dr.NETjes

Comments

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 5:22 AM

Nice! Could you tell a little bit on how you did the RSS feed without writing code?

Teun

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 5:25 AM

this.is.KILLER!!!!

exactly what i'm looking for.

>Add this template to your VS2005 >ProjectTemplates folder

Ive copied the zip here but the IDE is not picking it up, what am i missing?

sureshot

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 5:46 AM

@sureshot: see if this article can help you out: http://msdn.microsoft.com/msdnmag/issues/06/01/CodeTemplates/default.aspx

Dion

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 5:53 AM

@Teun: the RSS feed is just an aspx page (with ContentType="text/xml"). This RSS page contains an ObjectDataSource and a Repeater. I've used Eval methods to extract the column-data from the ObjectDataSource.

dion

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 5:54 AM

cheers boss

sureshot

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 6:12 AM

That's excellent work Dion. Well done.

Wim Hollebrandse

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 7:57 AM

Let's get rid of .TEXT :-). This is pretty cool

Niels

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 10:09 AM

The ZIP appears to have some problems:

Warning: skipping "images\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header
Warning: skipping "Bin\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header
Warning: skipping "App_Themes\default\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header
Warning: skipping "App_Data\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header
Warning: skipping "App_Code\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header
Warning: skipping "admin\". The 32-bit CRC stored in the local header for this file is not the same as the 32-bit CRC stored in the central header

But I really like the idea of this.

Aidan Marcuss

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 10:35 AM

@Aidan: I've checked the zip file both using the WinXP integrated zipper and WinRar, but didn't have any problems. Do you use an older version of WinZip?

dion

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 12:35 PM

Great!

1. Download the Zip file.
2. Unzip its contents, be sure the the for folder name is 'QuickBlog' (for images to work)
3. Fire up VS 2005
4. Open Web Site->Locate the 'QuickBlog' folder
5. Right click on Default.aspx -> View in Browser!

Joy!

Thanks for the great sample!!!

Samboy LIms

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 10, 2006 2:37 PM

Excellent !!! Thanks for sharing

Mihir Solanki

# re: QuickBlog: Free VS2005 template for a weblog application@ Friday, February 17, 2006 5:16 PM

Great you published this... but I'm missing the part where you wanted to proof that VS.NET 2005 can beat Ruby on Rails on spped of development ans minimal amount of code;-)

Serge van den Oever [Macaw]

# re: QuickBlog: Free VS2005 template for a weblog application@ Thursday, March 02, 2006 1:46 AM

Great! Your blog (not just this entry) is just like said earlier 'Killer'!

energed

# Blog template project per VWD 2005@ Monday, July 24, 2006 7:47 AM

Simone Busoli Weblog

# re: QuickBlog: Free VS2005 template for a weblog application@ Tuesday, November 18, 2008 6:15 AM

Hey ,

I have unzipped the file

and as said i am having Visual Web Developer 2005.

Now when i right click on default.aspx

It gives me an error saying

" Server Application Unavailable "

tejas9165

Leave a Comment

(required) 
(required) 
(optional)
(required)