Paul Rajs

Paul Rajs

  • NA
  • 641
  • 138.2k

Enable Disable Button in GridView based on condition in ASP.Net

Oct 3 2020 5:09 AM
Hi Friends,
 
In the below code if status is A means enable otherwise disable ... but I want Enable status if A or B otherwise disable the button ...
 
How can i make do it ... if anyone know kinldy suggest me
 
Thanks & regards
 
Paul.S
 
Enabled='<%#Eval("Status").ToString().Equals("A")%>'
 
<asp:Button ID="btnupdate" class="btn btn-primary" runat="server" OnClick="btnUpdate_Click" Text="Update VRN" ToolTip="Click to Update" Enabled='<%#Eval("Status").ToString().Equals("RCBook not yet Upload")%>'/>

Answers (3)