J
jasonkester
DataBinder.Eval will give you an object, not an int. You'll either
need to cast it or teach fbool to deal with it.
public string fbool(object o)
{
try
{
if ((int)o == 1)
return "true";
}
catch
{
// not an integer.
}
return "false";
}
Good luck!
Jason
Expat Software Consulting Services
http://www.expatsoftware.com/
need to cast it or teach fbool to deal with it.
public string fbool(object o)
{
try
{
if ((int)o == 1)
return "true";
}
catch
{
// not an integer.
}
return "false";
}
Good luck!
Jason
Expat Software Consulting Services
http://www.expatsoftware.com/