Files
Umbraco-CMS/umbraco/presentation.ClientDependency/ClientDependencyInclude.cs
Shandem f6d0d043b5 DO NOT DOWNLOAD. DOWNLOAT LATEST STABLE FROM RELEASE TAB
Created 4.1.0 branch

[TFS Changeset #55082]
2009-06-19 07:39:16 +00:00

28 lines
600 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
namespace umbraco.presentation.ClientDependency
{
public class ClientDependencyInclude : Control
{
public ClientDependencyInclude()
{
Type = ClientDependencyType.Javascript;
}
public ClientDependencyType Type { get; set; }
public string File { get; set; }
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
if (string.IsNullOrEmpty(File))
throw new NullReferenceException("Both File and Type properties must be set");
}
}
}