title: how to use if condition in aspx page
body: <p>I had placed <code>div</code> with condition.. on my execution,if condition is also displayed,        i need to remove it..</p>
  
  <pre><code>        **My New Code**
  
  &lt;asp:TemplateField HeaderStyle-Width="90px" ItemStyle-Width="0"&gt;
      &lt;ItemTemplate&gt;  
  
          &lt;div style="cursor: pointer; padding-top: 02px;" onclick="ShowfllDetails(&lt;%#Eval("StudentID")%&gt;);"&gt;
  
          if(&lt;%# (Eval("StatusName").Equals("Processed")) %&gt;)
          {
              //should not show the upload button                   
          }
          else
          {
           &lt;u&gt;Upload &lt;/u&gt; //show the upload button
          }
          &lt;/div&gt;
  
          &lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%#(Eval("StatusName").Equals("Processed") ? "images/add_btn.png" : "")%&gt;' /&gt;
  
      &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/cd6cE.png" alt="enter image description here"><br>
  I'm getting displayed the if condition i need not to display it..</p>
  
  <p>Thank-You.</p>