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

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

BlogEngine.Net is added to ASP.Net as a starter kit

August 23, 2007 06:21 by rclarkson

Micorsoft has added BlogEngine.Net to its ASP.Net website as a starter kit.  This is a big deal to some of us because there are now only a total of eleven (11) starter kits on the site.  I think it is a true testament to Mads and his inititive, as well as, a huge pat on the back to those develpers are committing valuable time to this project.  I would be remise to not mention all of those people who are using the application and making it a success.  Your input, feedback, suggestions, questions, comments, etc. are what help to drive the success of BlogEngine.

 Visit these links:

http://www.dotnetblogengine.net

See BlogEngin.Net on www.asp.net

Download the BlogEngine.NET Web Site

Review the Features


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

Orca

May 7, 2007 16:11 by rclarkson
I just downloaded Orca Beta and will give it a go around.  Wish me luck.

 


Be the first to rate this post

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

IE 7 Search Text box and Print

May 7, 2007 16:08 by rclarkson
Something weird is going on.  For starters, I have two machines with IE 7.  In Internet Explorer, neither of their search text boxes work and they cannot print.  I am working on a fix but cannot find any.  I can't find anything on Google or Microsoft's website.  I will post a follow up when I find the answer.


Be the first to rate this post

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

Exchange SBS 2003

October 10, 2006 03:09 by rclarkson

The exchange server goofed.  It had an error that read:

There was an error logging out from the POP3 server (mailbox <mail.mydomain.com [xxxxxxxx@mydomain.com]>). The error is -2147014858 (An operation was attempted on something that is not a socket.
). All the messages will remain in the server and its recipients may receive it more than once.

A reboot fixed it.  Everything else on the web that I found had to deal with XP and other products.


Be the first to rate this post

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