W
Web Team @ Borough of Poole
Can anyone help with this error...
"Specified cast is not valid."
Which I am getting with this code...
(Line 223)
Line 221: 'Handles data paging
Line 222: Public Sub PagerButtonClick(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnPager.Click
Line 223: Dim arg As String = CType(sender,
Button).CommandArgument
Line 224: Select Case arg
Line 225: Case "next" 'The next Button was
I casted sender to button in order to fix a 'late binding' error I had
after switching option strict on.
"Specified cast is not valid."
Which I am getting with this code...
(Line 223)
Line 221: 'Handles data paging
Line 222: Public Sub PagerButtonClick(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnPager.Click
Line 223: Dim arg As String = CType(sender,
Button).CommandArgument
Line 224: Select Case arg
Line 225: Case "next" 'The next Button was
I casted sender to button in order to fix a 'late binding' error I had
after switching option strict on.