TemplateControl.LoadTemplate Method (String)
Obtains an instance of the ITemplate interface from an external file.
Assembly: System.Web (in System.Web.dll)
The following code example demonstrates how to use the DataList Web server control named DataList1. The user control implements the ITemplate interface and is contained in a file named Newtemplate.ascx.method to add a user control as an alternating item to a
Available since 1.1