When writing aspx, if you accidentally remove AutoEventWireup="false", you may die ugly.
The Page_load part will be executed twice when the page is loaded! Be careful not to remove the AutoEventWireup="false" setting in aspx
.
<%@ Page language="c#" Codebehind="ShowSimpleFactory.aspx.cs" AutoEventWireup="false" Inherits="test.DesignPatternTest.ShowSimpleFactory" %>