Ik wil dat de labels in de datalist aangepast worden als er niet instaat dat er 0 komt te staan.
Volgende code zou ik dus moet hebben (dan wel aangepast zodanig dat hij de labels in de datalist aanpast)
VB:
hieronder code datalist:Code:if FKcategoryId1Label.text = "" then FKcategoryId1Label.text = "0" end if
PHP Code:<asp:DataList ID="DataList3" runat="server" DataSourceID="AccessDataSourceOther">
<ItemTemplate>
FKcategoryId1:
<asp:Label ID="FKcategoryId1Label" runat="server" Text='<%# Eval("FKcategoryId1") %>'></asp:Label><br />
FKcategoryId2:
<asp:Label ID="FKcategoryId2Label" runat="server" Text='<%# Eval("FKcategoryId2") %>'></asp:Label><br />
FKcategoryId3:
<asp:Label ID="FKcategoryId3Label" runat="server" Text='<%# Eval("FKcategoryId3") %>'></asp:Label><br />
FKcategoryId4:
<asp:Label ID="FKcategoryId4Label" runat="server" Text='<%# Eval("FKcategoryId4") %>'></asp:Label><br />
<br />
</ItemTemplate>
</asp:DataList>

Likes:


Quote