aktschnman
New Member
When I use Eval there is not syntax error\[code\]<asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%#ConvertHaulZoneCodeForDisplay(Eval("HaulZoneCodeWIL").ToString())%>'></asp:TextBox>\[/code\]When I use Bind for this statement I am getting an error "Name Bind is not declared"\[code\]<asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%#ConvertHaulZoneCodeForDisplay(Bind("HaulZoneCodeWIL").ToString())%>'></asp:TextBox>\[/code\]How to fix this. I want to use Bind only, not EVAL as Bind is two-wayIn the code-behind I am writing like this : \[code\]Protected Function ConvertHaulZoneCodeForDisplay(ByRef str As String) As String If str <> "0" Then Return str Else Return "" End If End Function\[/code\]