I'm trying to format one of the output values within a <asp:Repeater> control.
Basically, if the value output from the database equals 1000, I want to output "N/A" instead of "1000". Code is below:
....
<%# DataBinder.Eval(Container.DataItem,"MinMonthsSinceBankruptcy"
%>
Is this possible using the repeater? Would the code have to be in the T-SQL statement or is is possible to have this code be passed as an argument to a function (that's implemented in the code-behind), such as :
<%# FormatBankruptcy(DataBinder.Eval(Container.DataItem,"MinMonthsSinceBankruptcy"
)%>
Thanks for any thoughts and suggestions.
Basically, if the value output from the database equals 1000, I want to output "N/A" instead of "1000". Code is below:
....
<%# DataBinder.Eval(Container.DataItem,"MinMonthsSinceBankruptcy"
Is this possible using the repeater? Would the code have to be in the T-SQL statement or is is possible to have this code be passed as an argument to a function (that's implemented in the code-behind), such as :
<%# FormatBankruptcy(DataBinder.Eval(Container.DataItem,"MinMonthsSinceBankruptcy"
Thanks for any thoughts and suggestions.