Skip to main content


Showing posts from November, 2009

A Free CSS Menu

I have always used pure css, as a menu generator and this is good, but converting it to aspx and including the compatibility is messy so I have been on the look out, and today I found a good one.
What I like is they have real life examples, they use a few cascading style sheet files but that is cool since they have example from site you recognize, and that helps.
Only think I do not like is they use id= and class= and VS really only properly supports class for go to code, so you have to do a search all open after opening the many files

Impressions of the Wizard of Oz

I have just finished reading my daughter the book the "Wizard of Oz". I have seen bit of the movie (by the way release in 1939, but only became popular through TV in the 1950s), and have never read the book.
I must tell you this is a great read, something worth reading your kids, my daughter is 5 going on 6, and I feel she has afforded me a gr8 opportunity in having read the novel I would probably have never read.
The story itself is extremely creative, considering that it was written in the late 18 hundreds (it was released in 1900) and was mainly targeted a kids, it sold 90,000 copies and was band since it was considered unfit reading for kids.
If something like this novel had been written in the 60's I am sure drugs would have been blamed, since in almost every chapter there is some creative character. Besides the main Scarecrow, Tin woodman and cowardly lion, there are queen mice, red, green, yellow and blue people. Cities made out of bone china, rock people, winged mo…

ASP.NET Development Server always needed a restart

I work in VS 2008, and every time I made a change to my code / html I had to stop the ASP.NET development server – apparently called Cassini.
This was a little irritating as you can imagine, after scouring the internet every time I had a chance for a few months, I was ready to give up, I even posted on a few forums.
Then I found a great site that spoke about nothing to do with the server, and guess what it is working. It has to do with how .net is dealt with on you machine, and it obviously assumes you are not a coder by default.
The Fix
On the MSDN forums I found a reference to the Microsoft knowledge base: KB911272. In summary
Essentially the HKLM\Software\Microsoft\ASP.NET\FCNMode determines how ASP.NET is dealt with as an app on the box.
Initially setting this to "0" fixed the problem, but this caused a UNC share problem, so then I set it to two after finding this great item
And now I can change my c…

POST as form using C# to Pay Provider

The Remote Post Form class
I have used the code for the jigar site and added my own goodies, so all credit to him. Sorry about the flast formating but is the only way I could get a neatish post

using System;
using System.Collections.Generic;
using System.Web;

using System.Security.Cryptography;
/// <summary>
/// Remotely handle and Post form from
/// </summary>
public class RemotePost
private System.Collections.Specialized.NameValueCollection Inputs
= new System.Collections.Specialized.NameValueCollection();
public string Url;
public string Method;
public string FormName;

public RemotePost(string pURL)
// TODO: Add constructor logic here
Url = pURL;
Method = "post";
FormName = "frmRemotePost";

public void Add(string name, string value)
Inputs.Add(name, value);

public void Post()

Server.Response vs Request.Redirect

I have always wondered what the difference was, and finally found out (see below – cut and paste) that the one is recommended for internal pages, the other for external.

I found this at:
If you read a lot of industry magazines and ASP.NET code samples, you may find that, although the majority use Response.Redirect to send the user to another page, some seem to prefer the rather mysterious-sounding Server.Transfer. So, what's the difference?
Well, Response.Redirect simply sends a message down to the browser, telling it to move to another page. So, you may run code like:
to send the user to another page.
Server.Transfer is similar in that it sends the user to another page with a statement such as Server.Transfer("WebForm2.aspx"). However, the statement has a number of distinct advantages and disadvantages.
Firstly, transferring to anoth…

Do books have soul?

To me, and I am sure many others the printing press did more than replicate words on paper. Today we are able to find books on every topic under sun, and some that have not even been dreamed of.
JC's book spoke about objects that have soul. Well what about books. If we look at purely scientifically essentially the act of writing is kinetic and the letters on the paper are potential energy. When the book is read this produces kinetic energy?
To me a book thorough this process has a soul. When you open it the soul of the book is created for you, or has it already been created during the process of writing and then reborn when you open the book? The life of the book is then determined by how long you read it, and how much of an affect it has on you.
If you permanently remember the characters, plot and story line, then is that soul? Or just a memory
All this pondering is now complete, does it have soul? J


The bulk of the content below is reproduced from, written by Martin Zahn, Akadia AG, 20.03.2003 and have made some small changes, as time has gone by.
Naming Conventions for .NET / C# Projects
The original of this document was developed by the Microsoft special interest group. Martin Zahan made some add-ons and then by Warren Machanik, the abbreviation tables will change (and have changed from the original article, please email me it you have alternative suggestions or leave a comment) . These standards should be used I a step towards standardization of naming conventions that should be used with .NET projects. As to be used for all items when naming items. Consistent naming pattern is one of the most important elements of predictability and discoverability in a managed class library. Widespread use and understanding of these naming guidelines should eliminate unclear code and make it easier for developers to understand shared code…