Tuesday, 10 October 2017

Call Master page function in Page lavel

//======Master Page Function
public string LabelValue
    {
        get { return this.lblSchoolName.Text; }
        set { this.lblSchoolName.Text = value; }
    }

    public string School_Iogo
    {
        get { return this.imgSchool.ImageUrl; }
        set { this.imgSchool.ImageUrl = value; }
    }

//=========Calling From Page level
if (dt_SchoolName.Rows.Count > 0)
            {
                ((MasterHome)this.Master).LabelValue = Convert.ToString(dt_SchoolName.Rows[0]["Branch_Address1"]);
                ((MasterHome)this.Master).School_Iogo = Convert.ToString(dt_SchoolName.Rows[0]["Branch_Address1"]);
            }


No comments:

Post a Comment

IIS deployment support details

  Node JS - IIS deployment support details node: http://go.microsoft.com/?linkid=9784334 IISNode: https://github.com/azure/iisnode/releases/...