S
SimonZ
I have data repeater.
One of the row is defined:
<ItemTemplate>
<asp:TableCell >
<%If viewState("type") = "3" then%>
<%# writeLine(DataBinder.Eval(Container.DataItem,
"name")%>
<%else%>
<%# writeLine1(DataBinder.Eval(Container.DataItem,
"name1")%>
<%end if%>
</asp:TableCell>
</ItemTemplate>
But this won't work. There is no error message but the row is empty.
If I write like:
<ItemTemplate>
<asp:TableCell >
<%# writeLine1(DataBinder.Eval(Container.DataItem,
"name1")%>
</asp:TableCell>
</ItemTemplate>
or
<ItemTemplate>
<asp:TableCell >
<%# writeLine(DataBinder.Eval(Container.DataItem,
"name")%>
</asp:TableCell>
</ItemTemplate>
then works in both cases.
How should I write my example that I'll get the result?
Thanks,S
One of the row is defined:
<ItemTemplate>
<asp:TableCell >
<%If viewState("type") = "3" then%>
<%# writeLine(DataBinder.Eval(Container.DataItem,
"name")%>
<%else%>
<%# writeLine1(DataBinder.Eval(Container.DataItem,
"name1")%>
<%end if%>
</asp:TableCell>
</ItemTemplate>
But this won't work. There is no error message but the row is empty.
If I write like:
<ItemTemplate>
<asp:TableCell >
<%# writeLine1(DataBinder.Eval(Container.DataItem,
"name1")%>
</asp:TableCell>
</ItemTemplate>
or
<ItemTemplate>
<asp:TableCell >
<%# writeLine(DataBinder.Eval(Container.DataItem,
"name")%>
</asp:TableCell>
</ItemTemplate>
then works in both cases.
How should I write my example that I'll get the result?
Thanks,S