Continuing from the previous post on building a custom control, visit Part 1 here.
Now lets add those library to the solution project.
Open up the property windows of those files and set them to “Embedded Resources”
NOTE: This is critical for the K2 SmartForm Control, as this will tell the solution to compile the library along with it.
In the SideMenu_Control.cs, open it up and add the following lines of codes.
We are not done yet, the above codes only tells to K2 Smartfrom Custom Control that those are required resources.
We are going to add those following JS and CSS to the code base with the following lines.
You will notice that the K2 Smartform Custom Control Template generate a whole bunch of codes for you. In this section, we going to remove some stuff to keep it clean.
Remove the following sections that is generated along with the template.
With that all done, we have a clean baseline to work with.