I'm having a problem parsing my parameters in ASP.Net
Here's what i'm doing
Sub ItemCommand(ByVal Sender as Object, ByVal e as RepeaterCommandEventArgs)
If e.CommandName = "EditDetails" Then
EditDetails() <---- This is where it's dying
Else If e.CommandName = "SubmitDetails" Then
SubmitDetails()
End If
End Sub
Sub EditDetails(ByVal Sender as Object, ByVal e as RepeaterCommandEventArgs)
Dim strPassedItems = e.CommandArgument
Dim strNumberSlept As String = e.CommandArgument.Split("-"C)(0)
Dim strPassedBookingRef As String = e.CommandArgument.Split("-"C)(1)
CType(e.Item.FindControl("ddlEditAdults"), dropdownlist).Visible = True
CType(e.Item.FindControl("ddlEditChildren"), dropdownlist).Visible = True
End Sub
Anyone got any ideas?
Thanks
Jamie