Skip to content

Instantly share code, notes, and snippets.

@mikeedwards83
Created April 1, 2012 18:00
Show Gist options
  • Save mikeedwards83/2277408 to your computer and use it in GitHub Desktop.
Save mikeedwards83/2277408 to your computer and use it in GitHub Desktop.
Example layout using GlassUserControl
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