Before proceeding with the examples in this chapter, we will make a copy of the Default Console. We will modify the copy instead of the original file. Ensure that you have completed these steps:
In the
Console
folder of the TropicalGreen solution, create a copy of theDefaultConsole.ascx
file. Name the copyCustomConsole.ascx
. Do a search for all instances of the text stringDefaultConsole
and replace withCustomConsole
in bothCustomConsole.ascx
and its corresponding code-behind file. There should only be 2-3 instances in the HTML and code-behind views. Save and build the solution.Replace the Default Console in the Plant template. Open the
Plant.aspx
template file inDesign
view. Drag and drop theCustomConsole.ascx
file onto the place where the Default Console is. Delete the Default Console.In Solution Explorer, create a new folder in the root of the TropicalGreen project named
ConsoleButtons
. This is where we will store all the class files when we create custom action controls...