Raja

Raja

  • NA
  • 2k
  • 355.9k

How to change the button to image button based on loading ?

Dec 21 2016 5:21 AM
I have use Repeater to bind the data table inside the repeater i want to use two button means based on one column in data table

if the column have value 'N' asp button is used is another value is coming use image button how to do it.
 
I have use below code
<% if ((Session["REVIEW_IND"].ToString() == "N")) 
{ %>
<asp:Button ID="Review" runat="server" Text="REVIEW" OnClick="Review_click" ToolTip="Review" />
<%}
 else if (Session["REVIEW_IND"].ToString() == "N")
{ %> <asp:ImageButton ID="Review1" runat="server" Text="REVIEW" />
<% } %></td>
 

Answers (6)