I would like to ask how to bind multiple command argument if one of the argument is a GUID(RoomID) type and the other one is a String(Date).
This is my asp Gridview:
<asp:Linkbutton CommandName="Test" CommandArgument='<%# Eval ("RoomID") + "," + Eval("Date") %>' />
and my rowcommand :
If e.CommandName = "Test" Then
Dim commandArgs As String() = e.CommandArgument.ToString().Split(New Char() {","C})
Dim IDtest as String = commandArgs(0)
Dim datetest as String = commandArgs(1)
End If
I got an error :
invalid cast exception was unhandled
Operator '+' is not a right one for GUID ',' and string types.
I have been looking for the answer but there is no answer for string and GUID types.
Thanks again for all your help. Any answers would be really appreciated.
Bookmarks