My first WebSlice

March 12, 2008 15:35 by rclarkson
I added this to my BlogEngine them. It worked the first time. Now that is amazing. I expect that this will take off for many BE.N site.
<div class="hslice" id="1"> 
<h1 class="postheader" >
<a class="postheader taggedlink" href="<%=Post.RelativeLink %>">
<div class="entry-title"><%=GetColoredTitle(Post.Title)%></div></a>
</h1>
<div class="date"><%=Post.DateCreated.ToString("MMMM d, yyyy HH:mm")%> by 
<a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + Post.Author %>.aspx"><%=Post.Author %></a>
</div>
    <!--<div class="entry">-->
        <%-- <%=Body %> This has been depreciated so please don't use it anymore. --%>
        <%-- Instead use the line below --%>
        <div class="entry-content" ><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
        <br /><%=Rating %>
    <!--</div>-->
</div>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

BlogEngine.Net Documentation

February 19, 2008 02:51 by rclarkson

I wanted to let everyone know that I have generated a web html help version of BlogEngine.Net.  It is for the current release only.  I will be updating it as Mads releases each version. 

BlogEngine.Net HTML documentation


Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Business Objects in .Net - Part One

January 15, 2008 13:00 by rclarkson

There is a lot out there about business objects and lot that is not.  What is out there are endless combinations of code and ideologies.  When you are an business and you have to begin to rely on outside coders to enforce the integrity of your data, business rules, and workflow, you have to begin to wonder if it is worth it.  There is a likelihood that your developers have chosen a third party to help them do their business objects.  That puts you in a conundrum.  What happens if they leave?  What is the learning curve and how will you continue to support it if you pick an in-depth business object framework like CSLA.Net or nBusiness? 

Microsoft seems to be addressing this concern in a circular, almost arbitrary manner.  They give you new technologies like LINQ, ASP.Net MVC, Dynamic Data Web Site, Enterprise Library, etc.  But none of them answer the question or business need - a simple, manageable business object framework.  What is a developer to do?

A business object has to do the following (more could be added):

  • Support fields,
  • Allow for validation; a.k.a. business rules,
  • Have a way to get data,
  • Create collections of objects,
  • Trap errors,
  • Be aware of it's state; dirty, new, old.
  • etc.

Why is there no simple way to make this happen?

I am an avid fan of CSLA.Net and highly recommend it.  I just discovered nBusiness on codeplex.com/nbusiness.

You can take a look at them and take the time to learn them.  There is a lot to be learned and will probably help you solve some of your existing coding problems and give you some new insights to coding.

I have been thinking about this for a long time and I have some initial thoughts about business objects. 

I think you should be able to create a class with properties and fields, simple enough.  You should be able to decorate your class and properties with attributes that tell a business object framework how to handle them.

An example would be

[Fetch("sp_GetById", "Id")]
[Delete("sp_DeleteById", "Id")]
public class MyObject
{
    private int _Id;

    [Validation(NotNullable)]
    [InitialValue(InFromDatabase)]
    [WriteRoles("Admin")]
    [ChangeRoles("Admin, Editor")]
    [ReadOnlyRoles("?")]
    public int Id
    {
        get { return _Id; }
        set { _Id = value; }
    }
}

Where is my hero for a business object framework?  I think this can be done with less than a dozen custom class files, a data provider framework, and the core .Net framework.


Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

HTML Editor Providers - Introduction and concept

August 2, 2007 11:16 by rclarkson

I am publishing a first draft of my idea on using an HTML Editor provider of the BlogEngine.Net. 

Essentially, I added an html provider to the web application.  I got a little frustrated with tinyMCE.  So, I decided that I wanted an easy way to interchange html editors.  I prefer Telerik and FCKEditor over tinyMCE any day.  However, the motto for BlogEngine.Net is no third party assemblies.  I like that idea.  No supporting third party assemblies.  Period. 

I am still working on the provider for tinyMCE.  The issue that I am running into is the having the js files load and execute on the textbox that is being rendered.  It can be fixed but I haven't finished it yet. 

The code is pretty well organized and you should be able to review it with much confusion.  Here is what I did...

  1. I added a Control.Textbox class in the App_Code/Controls directory
  2. Removed the reference to the tinyMCE web user control page
    <%@ Register src="~/admin/tinyMCE.ascx" mce_src="~/admin/tinyMCE.ascx" TagPrefix="Blog" TagName="TextEditor" %>
  3. I left the <Blog:TextEditor runat="server" id="txtContent" TabIndex="4" /> extactlly the same.
  4. I added this to the App_Code
    image 
  5. I added this folder to support the two html editors that require external files
    image
  6. I added this to the <BlogEngine> Section
  7. <BlogEngine>
      <blogProvider defaultProvider="XmlBlogProvider">
        <providers>
          <add name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider"/>
          <add name="MSSQLBlogProvider" type="BlogEngine.Core.Providers.MSSQLBlogProvider"/>
        </providers>
      </blogProvider>
      <htmleditorprovider defaultProvider="FCKEditorHTMLProvider">
        <providers>
          <add name="TextboxHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.TextboxHTMLEditorProvider" height="200" width="500"/>
          <add name="FreeTextBoxHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.FreeTextBoxHTMLProvider" height="200" width="500"/>
          <add name="FCKEditorHTMLProvider" type="BlogEngine.Core.Providers.HTMLEditors.FCKEditorHTMLProvider" height="300" width="800"/>
          <add name="tinyMCE" type="BlogEngine.Core.Providers.HTMLEditors.tinyMCEHTMLEditorProvider" height="300" width="800"/>
        </providers>
      </htmleditorprovider>
    </BlogEngine>
  8. Run the solution and it works.

Take a look and tell me what you think.  I know how I am voting.

BlogEngine.NET.zip (2.62 mb)


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

My Portal Project Blog Archive TinyMCE ASP.NET Image File Manager

August 1, 2007 09:19 by rclarkson

 I am checking into this with more detail for the BlogEngine.Net project.  It looks like a great begining!

tinyMCE Image File Manger

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Intellisense support for BlogEngine controls

July 26, 2007 15:21 by rclarkson
I added the following code to the web.config to have the intellisense render the blog controls.
 
 <compilation debug="true" >
---BEGIN NEW---
      <codeSubDirectories>
        <add directoryName="Controls"/>
      </codeSubDirectories>
---END NEW---
</compilation>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

One Man Shouting - How To Burn an ISO DVD Image under Windows Vista (5308)

July 4, 2007 02:24 by rclarkson

If you ever get stuck burning an ISO image to DVD here is the trick.

"I found however that the dvdburn.exe utility that is included with the Windows Server 2003 Resource Kit Tools did the trick.

I installed the resource kit tools under Vista, and then just had to open a cmd prompt and type:

 dvdburn d: {imagefilename} /erase

where {imagefilename} was the fully qualified path to the iso image I wanted to burn."

Courtesy of ....

One Man Shouting - How To Burn an ISO DVD Image under Windows Vista (5308)


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

The JavaScript Source: Code Generators: Popup Window Maker

January 23, 2007 11:24 by rclarkson

Not a bad popup window make.  It's amazing that in the fifteen years of working on websites there are so many people still looking for it and commenting on it.  Go Figure? 

Link to The JavaScript Source: Code Generators: Popup Window Maker


Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ctfmon and negative performance

December 4, 2006 07:10 by rclarkson

I am following up on my blog about ctfmon.  I did a performance analysis and my visual studio worked and responded better without ctfmon running.  Features like hitting F4 then typing the text for a control would not work with ctfmon running.  So, I kicked the ctfmon and got going faster and better without it.  You need ctfmon if you are going to use handwriting and language to text, etc.  How many people are using these features?  None that I am aware.  Follow this link http://support.microsoft.com/kb/326526.  I used only removing from the Office Installation.  The other steps were not necessary for me.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Frequently asked questions about Ctfmon.exe

November 22, 2006 07:53 by rclarkson

I have been using Visual Studio 2005 for over eight (8) months now.  I have noticed peaks and valleys in performance.  It seems that the best performance comes from using a different harddrive for the project files, not the same physical harddrive that VS2005 is installed on.  Second, kill this ctfmon process using they link below.  It runs even if you opt out of the language bar.   

Link to Frequently asked questions about Ctfmon.exe


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5