the method :
it throws an error:
Error 1: Operator '||' cannot be applied to operands of type 'bool' and 'string'
I want to check the string with that 2 value("scrap"," Friend")
Thanks.....
Code:
protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
string str = e.Item.Text;
if ((str == "scrap") || (str = "Friend"))
{
e.Item.Parent.ChildItems.Remove(e.Item);
}
}
Error 1: Operator '||' cannot be applied to operands of type 'bool' and 'string'
I want to check the string with that 2 value("scrap"," Friend")
Thanks.....
Comment