I need help displaying text in a datalist based on a condition. In the text I need to call a subroutine that will reopen this case. I got the text part down but I don't know how to call the subroutine.
So far, I created a function that I call using the following:
<asp:Label ID="lblStatus" Text='<%#ReturnStatus(Container.DataItem("Closed"), Container.DataItem("Pending"), Container.DataItem("CloseDate"), Container.DataItem("ClosedUser"))%>' runat="server" />
Here's my function:
Function ReturnStatus(ByVal intClosed As Integer, ByVal intPending As Integer, ByVal strCloseDate As String, ByVal strClosedUser As String)
Dim strMessage As String = ""
If intClosed = 1 Then
strMessage = strMessage & "<strong>This case has been closed. Click "
strMessage = strMessage & "here" <b>' here being a link to the subroutine</b>
strMessage = strMessage & " to re-open.</strong>"