T
Troy
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(CustBullet15)
Return "<tr><td>NULL VALUE</td></tr>"
Else
Return "<tr><td>" & CustBullet15 & "</td></tr>"
End If
End Function
<aspatalist id="customers" runat="server">
<HeaderTemplate>
<table border="0">
</HeaderTemplate>
<ItemTemplate>
<%# cnCustBullet15(Container.DataItem("CustBullet15"))%>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</aspataList>
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(CustBullet15)
Return "<tr><td>NULL VALUE</td></tr>"
Else
Return "<tr><td>" & CustBullet15 & "</td></tr>"
End If
End Function
<aspatalist id="customers" runat="server">
<HeaderTemplate>
<table border="0">
</HeaderTemplate>
<ItemTemplate>
<%# cnCustBullet15(Container.DataItem("CustBullet15"))%>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</aspataList>