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 AjaxContentForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadAjaxManager ajm = (RadAjaxManager)this.Master.FindControl("ajmMaster");
            Button btn = (Button)this.Master.FindControl("pbMaster");
            ajm.AjaxSettings.AddAjaxSetting(btn, this.lblContent);

            Label lbl = (Label)this.Master.FindControl("lblMaster");
            ajm.AjaxSettings.AddAjaxSetting(pbContent, lbl);
        }

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