I'm trying to pass multiple values through command argument tag in a listview. All the questions here are referring to GridView instead of a listview (I'm not sure if it makes a difference). I'm getting an error that Input String is not in correct format.
My code is:
aspx:
<asp:Button runat="server" Text="View Details" CssClass="button" CommandName="ViewApplicationDetails" CommandArgument='<%# Eval("id") + "|" + Eval("email") + "|" + Eval("application_hash")%>'/>
VB.NET:
Private Sub ListView1_ItemCommand(sender As Object, e As ListViewCommandEventArgs) Handles ListView1.ItemCommand
If e.CommandName = "ViewApplicationDetails" Then
Dim strAttributes As String()
strAttributes = e.CommandArgument.ToString().Split("|")
'Do something
End If
End Sub