3
Answers

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

Paul Rajs

Paul Rajs

4y
4.8k
1
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)