BlogEngine.NET SqlBlogProvider has Post update issue

by BizTron 10. August 2009 06:32

This is what you see when attempting to rate a new post. Click on a Star to rate the post.  Notice the infinitesimally small rating that is generally added when creating a first post.  This may be something I did myself while trying to “fix” the Add a new Blog script.

image

 

These are the symptoms I could find so far, but I cannot isolate the DateTime property that is causing the Exception.More...

Tags: ,

BlogEngine.NET | Blogging | Architecture | LINQ | SQL Server | ASP.NET | .NET

Add Custom DateTime Format to Blog Posts

by BizTron 11. September 2008 09:42

 

DateTime Format for Blog Posts for BlogEngine.NET

...or wherever you want to standardize output formatting.

Here is a rather simple solution to my issue of Date Time formatting on my blog posts.  I noticed that as of a recent version of BlogEngine.NET, the Date looked something like this: "29. June 2008 09:00"  I wanted to change it to something more readable to my target readers, some very local, such as: "Sunday, June 29, 2008 09:00 AM".  Well, I might want to change it sometime, AND I would like to drop it into multiple Themes, so I decided to place the format in Web.Config AppSettings. I looked up my specific Format and added an appSetting.  Then I just replaced the code used in "PostView.ascx" and tested away.

Here's what you can do to implement this yourself.

  1. Go to .NET Framework Developer's Guide, Custom Date and Time Format Strings and/or locate your format string.
    • I used "dddd, MMMM dd, yyyy hh:mm tt"
  2. Create an appSettings key such as: Custom.DateFormat and assign your format to the value.
    • <add key="Custom.DateFormat" value="dddd, MMMM dd, yyyy hh:mm tt" />
  3. Now add the code to use the format string.
    • <%=Post.DateCreated.ToString(ConfigurationSettings.AppSettings["Custom.DateFormat"])%>
    • original: <%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %>

 More...

Tags: ,

.NET | ASP.NET | BlogEngine.NET | Web

So you want a new BlogEngine.NET Theme?

by BizTron 17. August 2008 22:45

clip_image001

A simple way to adjust or tweak a theme to your liking can be as simple as a few lines of css code in styles.css.  I made a couple very minor changes to achieve the affect of a new background color, content on the right when it was always on the left, and a font color change to go along with the background better.  This is what it looked like:

/* I replace the Standard body formatting:
body {
    background-color: #F1F1F1;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}*/

/* With the following: */
body {
    background-color: #6699FF;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}

 More...

Tags: ,

ASP.NET | BlogEngine.NET

WCF Essentials

by BizTron 10. June 2008 06:00

TVUG Presentation - June 10th, 2008 (Now June 17th)  

This event was postponed due to serious weather advisories.

Be sure to check the TVUG Website for any updates.

TVUG President wrote in an e-mail to the Tech Valley .NET Users Group membership.  Please join us...

Join us for our last meeting before our summer break as Andrew Badera introduces us to Windows Communication Foundation. The current plan is that we won't have another meeting until September '08, but we might have a special meeting if we can get an INETA speaker in the area. Let's put it to a vote next week!

WCF Essentials


Speaker: Andrew Badera, CTO, Change Round-Up
When: Tuesday June 10th, 2008 - 6:30-9PM
Where: VersaTrans Solutions, Latham, NY


The global acceptance of Web services, which includes standard protocols for application-to-application communication, has changed software development. Windows Communication Foundation (WCF) is designed to offer a manageable approach to distributed computing, broad interoperability, and direct support for service orientation.

In order to simplify development of connected applications through a service-oriented programming model, Windows Communication Foundation bundles a lot of powerful features in one easily configured package. A couple notable features, as service architectures grow more complex and support greater workload, are duplex communication and connection throttling. This presentation will review the essentials of WCF, utilizing a Silverlight GUI to demonstrate latency and scaling characteristics of a simplex polling application vs. a duplex push application.

Speaker Bio
A lifelong geek, Andrew Badera has been immersed in the software world since the age of seven, when his parents bought him a Tandy BASICA programming book instead of Chuck Yeager's Advanced Flight Simulator he had been asking for, months on end. Not to be dissuaded, he read the book three times over the following week, and immediately set about, without any great degree of success, trying to write his own flight simulator. Currently he serves as CTO of Change Round-Up in Coxsackie, NY as well as senior software engineer on the Open Systems team at Davis Vision, Inc. in Latham.

Tags: , ,

Architecture | ASP.NET | C# Development | Development

Powered by BlogEngine.NET 1.6.0.1
Theme by Extensive SEO



Recent Posts


CompUSA

Elan Form Etch | Hard-shell Etched Leather Case

Handango Inc.

J&R Computer/Music World

Hot Offers

OmahaSteaks.com, Inc.

Tech Depot - An Office Depot Co.

TigerDirect

Toshiba - Toshibadirect.com