Hello,
I am trying to fill in a cell in my datagrid in the following way:
<ItemTemplate>
<% if DataBinder.Eval(Container.DataItem, "type"
) = "1"
Then
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
, DataBinder.Eval(Container.DataItem, "1"
, ""
ElseIf (trim(DataBinder.Eval(Container.DataItem, "type_of_expense"
) = "2"
)
Then
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
, DataBinder.Eval(Container.DataItem, "2"
, ""
Else
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
, DataBinder.Eval(Container.DataItem, "Amount"
, ""
End if
%>
But i get the following error:
BC30451: Name 'Container' is not declared
How can i fix this?
Neil
I am trying to fill in a cell in my datagrid in the following way:
<ItemTemplate>
<% if DataBinder.Eval(Container.DataItem, "type"
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
ElseIf (trim(DataBinder.Eval(Container.DataItem, "type_of_expense"
Then
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
Else
GetTotal(DataBinder.Eval(Container.DataItem, "type_of_expense"
End if
%>
But i get the following error:
BC30451: Name 'Container' is not declared
How can i fix this?
Neil