I am using ASP.Net, VB2003.
I have a repeater control.
In the ItemTemplate section of the control, my code is:
<TD><FONT size="1"><%#getEditLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>
<TD><FONT size="1"><%#getAddLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>
<TD><FONT size="1"><%#getDelLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>
In the code behind, during the page load event, a proc
called "getData" is called.
If the query in getData returns a record, everything is ok.
If the query returns 0 records, then I need to display
<TD><FONT size="1"><%#getNoRecordsLink((DataBinder.Eval
(Container.dataitem, "AppID")), DataBinder.Eval
(Container.dataitem, "Relocatable"))%></FONT></TD>
But I dont know where to put the "If sqlreader.hasrecords" statement.
Any ideas?