W
Wayne Wengert
I am getting the following error and I don't understand what it really
means.
Compiler Error Message: BC30518: Overload resolution failed because no
accessible 'ToString' can be called with these arguments:
Source Error:
Line 51: <ItemTemplate>
Line 52: <tr>
Line 53: <%# WeekHeader(Container.DataItem("StartDate"),
lastdate) %>
Line 54: <td><%# DataBinder.Eval(Container.DataItem,
"StartDate", "{0:d}") %> </td>
Line 55:
The Subroutine code is as follows:
Sub WeekHeader( startdate As Date, lastd As Date)
If startdate > lastd Then
Response.Write("<tr><td>" & startdate.Tostring("d") & "</td></tr>")
lastd = startdate
End If
End Sub
means.
Compiler Error Message: BC30518: Overload resolution failed because no
accessible 'ToString' can be called with these arguments:
Source Error:
Line 51: <ItemTemplate>
Line 52: <tr>
Line 53: <%# WeekHeader(Container.DataItem("StartDate"),
lastdate) %>
Line 54: <td><%# DataBinder.Eval(Container.DataItem,
"StartDate", "{0:d}") %> </td>
Line 55:
The Subroutine code is as follows:
Sub WeekHeader( startdate As Date, lastd As Date)
If startdate > lastd Then
Response.Write("<tr><td>" & startdate.Tostring("d") & "</td></tr>")
lastd = startdate
End If
End Sub