6
Answers

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

Raja

Raja

8y
200
1
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)