Salve amici,
ho un datalist da associare ad una base dati. Il mio problema è far associare a questo un campo. Mi spiego meglio. Se il valore del campo "primo" è nullo, allora deve apparire un button, diversamente deve apparire una scritta del tipo "OCCUPATO".
Come posso fare?
Ho provato così...
ma mi viene restituito un errorecodice:<ItemTemplate> <table border="1" width="300"> <tr> <td width="200"><%#Container.DataItem("orario")%></td> <td width="100"> <%if (#Container.DataItem("primo")="") then <asp:Button id="btnInvia" runat="server" Text="Inivia"></asp:Button></P> end if %> </td> </tr> </table> </ItemTemplate>
Grazie

Rispondi quotando