Statistics
Visits: 105083
Page Visits: 139171
Active visitors (monthly): 5364
Feed Count: 45
Most visited page: Adding value as a technical analyst
Category : LiteBlog MVC

LiteBlog - Subtle error while editing post twice

Last week, I edited an already published post. I published it. It worked fine. Then, I tried re-editing the post a second time. I got an exception. The error suggested that there was an error in updating the Archive.xml file.

On further analysis, I figured out that the publish date was showing up as Jan 1, 1900 while publishing the post (for the second time). I remember this was working fine. But, I have never tried editing and reediting a post.

I put a breakpoint on the Compose action of the Post controller. While editing for the first time, the breakpoint was hit. The post was published fine. While doing another edit (the second time), the breakpoint was not hit. I suspected a caching problem.

I have not enabled OutputCache in the server. So, IE was caching the Compose page very cleverly. I verified my assumption by using Fiddler. Fiddler suggested that the browser was serving the page from the cache.

So, I added one line of code to prevent browser caching:


Response.Cache.SetCacheability(HttpCacheability.NoCache);

It is working fine now. A published post can be reedited and republished as many as times as you want. (hopefully in all browsers).

Permalink | No Comments | Leave your comment
 

DotNetKicks! and this blog

I have a new blog location at http://blogs.dotnetkicks.com/vijayst. I will write longer and well researched blogposts in this new location.

I will use this blog (vijayt.com) for writing very short tips. These tips will usually be a distilled version of the discussions in Asp.net forums - http://forums.asp.net. I will also use this blog as a test bed and a live application for my blogging application - http://liteblog.codeplex.com

If you have not tried out kicking in http://dotnetkicks.com (DNK), try it. It is free!. DNK provides the popular stories of the day in the home page. These popular stories are usually articles and blogposts from .Net evangelists from all over the globe. Happy kicking!

Permalink | No Comments | Leave your comment
 

MVC Version of LiteBlog is released

MVC Version of LiteBlog is released. This releases uses jQuery extensively. FckEditor is the richedit tool. In the previous version, AjaxControlToolkit was used extensively. ACT is suited for WebForms framework.

The MVC version is slightly faster, even without output caching. There is no ViewState (prevalent in the Webforms version).

Permalink | No Comments | Leave your comment
 

New features added to the blog

A lot of new features are added to the blog:

  1. Scheduled publishing
  2. Ability to add code in the blog from the editor
  3. Syntax Highlighter to highlight the code
  4. Enhanced XML Profile Provider to delete inactive user profiles
  5. A better compose page

A few technical enhancements have been made:

  1. Usage of FckEditor as the compose tool
  2. Extensive use of AjaxControlToolkit
  3. Good reusable code in the business/data layer
  4. DIV based styling of UI

I hope the new release is much more useful than the previous one.

Permalink | No Comments | Leave your comment
 

LiteBlog Beta is released in CodePlex

This blog runs using a custom blog engine developed over a period of time. I have published the blogengine in CodePlex as LiteBlog. If you are interested to explore, you can check this out. It is light and integrates well with your app with a few changes.

Permalink | No Comments | Leave your comment