>it works, . . but don't really understand the logic
bool active = ((HiddenField)e.Item.FindControl("hidActive")).Value == "True";
it will evaluate like this:
Q: ((HiddenField)e.Item.FindControl("hidActive")).Value
-> is that string value equal to the string "True" (note: the STRING value "true", not the boolean value of True)
A: yes -> return true (boolean this time)
A: no -> return false (boolean this time)
and assigns that return value into "bool active"
MikeMCSD
ASKER
thanks angel for the explanation
>>Are you SURE it is a string?
>>That error suggests it is already a bool.
you're right, . . this is really confusing now, lol
what is the string value actually?