ASP.NET Scheduler - Knowledge Base

« Back to Knowledge Base list

Can I derive the template code-behind of Scheduler?

Q:

Can I derive the template code-behind of Scheduler?

A:

Yes, you can.

For example, you want to add some information from your database to Main.aspx template file.

You create a CustomMain class that derived from OboutInc.Scheduler.Templates.Main

public partial class YourCustomMain : OboutInc.Scheduler.Templates.Main
{
     protected void Page_Load(object sender, EventArgs e)
     {
          base.Page_Load(sender, e);
          //Write whatever code here.
     }

}

Change Inherits="OboutInc.Scheduler.Templates.Main" Main.aspx to  Inherits="YourCustomMain"

"Let me start by saying I love your products, they are by far the best I've used."

T. Bradley
Hansons