protected void imgPopupClose_Click(object sender, EventArgs e) { ButtonClickDemo(sender, e); }
protected void Demo1_ButtonClickDemo(object sender, EventArgs e) { string s = Session["s"].ToString(); this.FindControl(s).Focus();//here am getting error as object reference not set to instance of the object }
this.Page.FindControl("controlName")
this.Page.Master.FindControl("controlName")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)