thanks pradippatel99
its my code:
if (filAvatar.HasFile)
{
BLL.Users.UploadAvatarForAlbum(Convert.ToInt32(Page.User.Identity.Name), filAvatar, 0, strAddress, 0);
((this.Master.FindControl("UserLoginStatus") as UserControl).FindControl("imgAvatar") as Image).ImageUrl = "pqr";
}
but when i run it i got this error:
Object reference not set to an instance of an object.
i add my user control in web.config:
<add src="~/UserControls/UserLoginStatus.ascx" tagname="UserLoginStatus" tagprefix="abs" />