After binding my data to the datalist I have created this function. I am
recieving an error:
BC30289: Statement cannot appear within a method body. End of method
assumed.
Does anyone have any clue what is going on here?
---------------------------------------------
Function cnCustBullet15( ByVal CustBullet15 As String) as String
If IsDBNull(CustBu llet15)
Return "<tr><td>NU LL VALUE</td></tr>"
Else
Return "<tr><td>" & CustBullet15 & "</td></tr>"
End If
End Function
<asp:Datalist id="customers" runat="server">
<HeaderTemplate >
<table border="0">
</HeaderTemplate>
<ItemTemplate >
<%# cnCustBullet15( Container.DataI tem("CustBullet 15"))%>
</ItemTemplate>
<FooterTemplate >
</table>
</FooterTemplate>
</asp:DataList>
--
Thanks!
Troy
recieving an error:
BC30289: Statement cannot appear within a method body. End of method
assumed.
Does anyone have any clue what is going on here?
---------------------------------------------
Function cnCustBullet15( ByVal CustBullet15 As String) as String
If IsDBNull(CustBu llet15)
Return "<tr><td>NU LL VALUE</td></tr>"
Else
Return "<tr><td>" & CustBullet15 & "</td></tr>"
End If
End Function
<asp:Datalist id="customers" runat="server">
<HeaderTemplate >
<table border="0">
</HeaderTemplate>
<ItemTemplate >
<%# cnCustBullet15( Container.DataI tem("CustBullet 15"))%>
</ItemTemplate>
<FooterTemplate >
</table>
</FooterTemplate>
</asp:DataList>
--
Thanks!
Troy
Comment