I have an integer stored in my database that I need to convert string.
This is my attempt at the Eval:
<%# ChangeSalaryType(Eval(\"SalaryType\"))
I prefer to send the DataItem on code behind, and there get the data as:
<%#RenderSalaryType(Container.DataItem)%>
and on code behind
protected string RenderSalaryType(object oItem) { int salaryType = (int)DataBinder.Eval(oItem, "SalaryType"); // rest of your code }