Basically I have got two things i am passing from a command argument
<asp:LinkButton ID="lbEditDetails" Text="Edit..." runat="server" CommandName="EditDetails" CssClass="EditAdults" CommandArgument=<%# DataBinder.Eval(Container.DataItem, "number_slept") & "-" & DataBinder.Eval(Container.DataItem, "booking_ref") %>></asp:LinkButton>
I need to grab the number_slept
which is everything before the -
and put it into another string and then grab the booking_ref
which is after the -
and put that into a string
Here's what I've got
Dim strPassedString = e.CommandArgument
Dim NumberSlept = This will be the passed number slept
Dim BookingRef = This will be the passed booking ref
I'm not sure how to split the command argument
Is it possible?
Thanks
Jamie