Client side
Visible='<%# ShowImgElement(Eval("Status").ToString()) && AddelementsPermission(Eval("OsoNameID").ToString()) %>'
Server side
#region Visible hide settings
//status wise setting
public bool ShowImg(string Status)
{
if (Status == "New")
return true;
else if (Status == "Approved Main Initiative")
return false;
else if (Status == "Completed")
return false;
else
return false;
}
public bool ShowImgElement(string Status)
{
if (Status == "New")
return true;
else if (Status == "Approved Main Initiative")
return true;
else if (Status == "Completed")
return false;
else
return true;
}
Visible='<%# ShowImgElement(Eval("Status").ToString()) && AddelementsPermission(Eval("OsoNameID").ToString()) %>'
Server side
#region Visible hide settings
//status wise setting
public bool ShowImg(string Status)
{
if (Status == "New")
return true;
else if (Status == "Approved Main Initiative")
return false;
else if (Status == "Completed")
return false;
else
return false;
}
public bool ShowImgElement(string Status)
{
if (Status == "New")
return true;
else if (Status == "Approved Main Initiative")
return true;
else if (Status == "Completed")
return false;
else
return true;
}