2

Can anyone help me with this VB Code:

 <%If (Eval("NewPrice")) =0 Then%>
                        <% Session("OrigenalPrice") = True%>
                        <asp:Label ID="Pricelabel" runat="server" Text='<%# Eval("Price") %>' />
                        <%Else%>
                        <% Session("OrigenalPrice") = False%>
                        <asp:Label ID="NewPricelabel" runat="server" Text='<%# Eval("NewPrice") %>' />
                        <asp:Label ID="OldPricelabel" runat="server" Text='<%# Eval("Price") %>' />
                        <%End If%>

Thanks and best regards

HAJJAJ
  • 3,667
  • 14
  • 42
  • 70

1 Answers1

1

Here you'll find the answer (you should move the <%If (Eval("NewPrice")) =0 Then%> part to code behind).

Community
  • 1
  • 1
ctekse
  • 641
  • 1
  • 6
  • 18