Hello.
I'm trying to disable/enable a button according some business conditions for each row on a grid view.
Does this make any sense?
<asp:Button runat="server" Text="Remover" CommandName="remove" ID="btnRemove" CommandArgument='<%# Eval("Id") %>'
OnClick="GridAction_Click" CssClass="rounded pink aspbutton" Width="100px" Enable='<%#EnableRemoveButton(Eval("StartDate"), Eval("EndDate")) %>' />
Protected Sub EnableRemoveButton(p1 As Object, p2 As Object)
Try
If p1 Is Nothing Then
End If
Catch ex As Exception
End Try
End Sub
This does not work.
It says it can parse to string:
Compiler Error Message: BC30518: Overload resolution failed because no acce ...
Go to the complete details ...