using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.WebControls;

namespace AjaxMaster
{
    public partial class AjaxMasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Button btn = (Button)cphMain.FindControl("pbContent");
            //ajmMaster.AjaxSettings.AddAjaxSetting(btn, this.lblMaster);

            //Label lbl = (Label)cphMain.FindControl("lblContent");
            //ajmMaster.AjaxSettings.AddAjaxSetting(pbMaster, lbl);
        }

        protected void pbMaster_Click(object sender, EventArgs e)
        {
            Label lbl = (Label) this.cphMain.FindControl("lblContent");
            lbl.Text = "Changed from Master " + DateTime.Now.ToString();
        }
    }
}
