S
SimonZ
I have dataRepeater.
How can I do:
<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>
The problem is that when viewState("type") =3 then I have different
dataSource.
If statement doesn't work like I write.
Any idea?
Thanks,S
How can I do:
<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>
The problem is that when viewState("type") =3 then I have different
dataSource.
If statement doesn't work like I write.
Any idea?
Thanks,S