Created
April 1, 2012 18:00
-
-
Save mikeedwards83/2277408 to your computer and use it in GitHub Desktop.
Example layout using GlassUserControl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
using Glass.Demo.Application.Models.EdDemo; | |
using Glass.Demo.Application.Web.Controls; | |
namespace Glass.Demo.Website.layouts | |
{ | |
public partial class TestSublayout : GlassUserControl<Base> | |
{ | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
this.Model = this.SitecoreContext.GetCurrentItem<Base>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment