|
Data source binding for Repeater1 in Page_Load:
Private Sub Page_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cls_hrs_vacationdef = New cls_hrs_vacationdef
Repeater1.DataSource = cls_hrs_vacationdef.hrs_SelectAll ("2016-01-01", "2016-12-31", "", "")
Repeater1.DataBind ()
End Sub
When executing, it prompts an error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30516: No accessible "Eval" accepted this number of parameters, so the overload decision failed.
Source Error:
Line 125: <ItemTemplate>
Line 126: <TR bgColor = "# ffffff" height = "20">
Line 127: <TD class = "style1"> <% # DataBinder.Eval ("name")%>
Line 128: </ TD>
Line 129: <TD class = "style1">
What is going on? Is Eval () executed before Page_Load? How to solve it, thank you. |
|