Skip to main content
Home  ›  Blog

Code Splitting with Razor Code-Behind

2sxc is made for web designers - and the new Code-Behind feature will make it much more so. Because as 2sxc got more powerful, the Razor files began looking more technical. This wasn't what we wanted, because to really split the work between developers and designers means that designers should work on the HTML without being scared by C# code in the same file. 

This is why we created Code-Behind - to better separate scary C# from the HTML/Razor Templates. I'll explain it in this video:

BTW: There's a live demo in the DNN Tutorials.

Also Great for Customize Data and Search

You can also place CustomizeData() and CustomizeSearch() in the .code file - making the razor even cleaner!

Hope you love it as much as we do - please leave your comments and thoughts!
iJungleboy


Daniel Mettler grew up in the jungles of Indonesia and is founder and CEO of 2sic internet solutions in Switzerland and Liechtenstein, an 20-head web specialist with over 800 DNN projects since 1999. He is also chief architect of 2sxc (see github), an open source module for creating attractive content and DNN Apps.

Read more posts by Daniel Mettler