• Login
  • Register

DNN Blogs

Written for the Community, by the Community

Code Splitting with Razor Code-Behind

Written By iJungleboy


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:


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!

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
Total: 1 Comment(s)
This is a greatly appreciated improvement. I love the momentum on 2sxc!!
Tuesday, July 7, 2020 ·

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved