title: trying to add condition inside grid view but it's give me an error
body: <p>trying to add condition inside grid view but it's give me an error that cannot simplicity convert type object to bool I want if the v_flag = c then return v_amount else return 0 and this my html but not working </p>
  
  <pre><code>          &lt;asp:TemplateField HeaderText="credit"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="v_amount" runat="server" Text='&lt;%# ((Eval("v_flag")) = "c" ) ? Eval("v_amount"): "0.00"   %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
  </code></pre>