Good day all
i have a strange issue here.
i have a table row defined like this
and the Function defined on that server is like thisCode:<tr id="tr6_3" runat="server" visible='<%# CheckVisible() %>' > <td> </td> <td> <strong>10.10 Introduction of a Project </strong> </td> </tr>
i have debuged this and it brings "0" but the Tr does not get hidden. i am i missing something here?Code:Public Function CheckVisible() As Boolean Dim sqlcout As New StringBuilder() sqlcout.Append("select Count(*) as [COUNT]") sqlcout.Append(" from mytable") sqlcout.Append(" where fieldid= '" + fieldid+ "'") Dim drcount As DataRow = clsFunctions.returnaRow(sqlcout.ToString()) Dim Results As Boolean If (drcount Is Nothing = False) Then If (drcount("COUNT") = 0) Then Results = False Else Results = True End If End If Return Results End Function
thanks




Reply With Quote