i am getting NullReferenceException
at
"tb = Page.FindControl("table1").FindControl("txtAccount" +i) as TextBox;"
can anyone help me this code has done in c# CRM2013.
if (accountEntity.Attributes.Contains("telephone1"))
{
string phone = accountEntity.Attributes["telephone1"].ToString();
tb = Page.FindControl("table1").FindControl("txtAccount" +i) as TextBox;
if (tb!= null)
{
tb.Text = phone;
}
}