title: Change text in button (gridview) using if else
body: <p>I have one button to change based on the page. I have 3 page which is confirmed, pending and rejected.</p>
  
  <p>On confirmed and rejected the text inside the button is same but different for pending. How can change the word in the button. The button placed in the grid view.</p>
  
  <p>Below the code in aspx file:</p>
  
  <pre><code>&lt;asp:TemplateField&gt;
      &lt;HeaderTemplate&gt;Actions&lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
           &lt;asp:Button ID="lnkbtnInfo" runat="server" CssClass="btn btn-success" Text="" CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem, "Id") %&gt;' CommandName="Detail" /&gt;&lt;/td&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>How can i do in the cs file, to use the if else.
  For rejected and confirmed page, the button is "view" and pending page is "review"</p>