Advertisement

01.17.2008 at 07:38AM PST, ID: 23090452
[x]
Attachment Details

ASP.NET IF STATEMENT

Asked by lrbrister in .Net Editors & IDEs, Visual Studio .NET 2005

Tags: statement, eval

In the code below I need for there to be an if statement...

IF     <%#Eval("name")%>  NOT EQ  16 or 51  the code below...
But if EQ to 16 0r 51 then <%#Eval("phone")%> and <%#Eval("type")%> swap positions

<tr>
     <td>
        <%#Eval("name")%>
     </td>
     <td>
        <%#Eval("phone")%>
     </td>
</tr>

<tr>
     <td>
      <%#Eval("addr")%>
      <%# Eval("city") %>
      <%# Eval("theType")%>
     </td>
</tr>Start Free Trial
[+][-]01.17.2008 at 07:43AM PST, ID: 20682326

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Visual Studio .NET 2005
Tags: statement, eval
Sign Up Now!
Solution Provided By: TimCottee
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906