I am trying to test whether a table in a dataset is empty or not using an IF statement. ie has the SQL query retrieved any results or not. the table is called myLinks as below:
<%# IF myLinks.IsEmpty() THEN %>
<asp:Repeater id="myLinks" runat="server">
...
...
</asp:Repeater>
<% End If %>
Is there such a thing as IsEmpty with these if not how do I perform such a test?
i have another table already in the dataset called "myResults" which is added first. I treid different index numbers and even putting the table name eg ("myLinks") in the parenthesese like when you refer to column names.
all gave me the same error message as mentioned above,
i have another table already in the dataset called "myResults" which is added first. I treid different index numbers and even putting the table name eg ("myLinks") in the parenthesese like when you refer to column names.
all gave me the same error message as mentioned above,
well im still in development at the moment, at a later date all the code will be put into a seperate file and where possible things procedureised more and more.
The essence of what im trying to do is there, this IsEmpty thing is getting a bit boggling though
The thing is that that error doesn't look like a .NET error
I have not seen that before.
You arn't using VS so it's a little hard for us to figure out what is wrong.
I don't think it's to do with the .NET coding, more to do with you <&*% blah blah stuff...dunno what it's called.
Woka
venerable bede: I am right as usual??? 99% of the time I talk crap and am wrong