I have an integer stored in my database that I need to convert string.
This is my attempt at the Eval:
<%# ChangeSalaryType(Eval(\"SalaryType\"))
Even though you know that the SalaryType field will be an int in your aspx it will be cast as object after the Eval(). Do an explicit cast like so:
SalaryType
int
object
<%# ChangeSalaryType(Convert.ToInt32(Eval("SalaryType"))) %>