I am doing:
convert.toboolean(request.form["mycheckbox"]
but since the value is 'false', it doesn't seem to cast to boolean.
What should I do?
I don't like checking for == "false"
and then converting to boolean.
is there a cleaner way?
Update
All I am doing is:
if (Convert.ToBoolean(request.Form["somecheckbox"]))
{
}