L
Lynn
Hello,
I have a website that is working fine. I have just turned on "option strict"
and am getting an error with the parts of my code. I have fixed everything
but this section, which has me baffled.
I am getting the error "option Strict On disallows late binding", and the
error is referring to this line of code: (3rd line in my sub below)
Select Case sender.Parent.ID
Public Sub btnNextPage_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
ViewState("CurrentPage") += 1
Select Case sender.Parent.ID
Case "pnlSelectLocation"
' do stuff here
Case "pnlFirstScreen"
' do stuff here
Case "pnlSecondScreen"
' do stuff here
Case "pnlSubmitReg"
' do stuff here
End Select
End Sub
I don't understand what the error means. I've tried various castings but
have not had any luck.
Can somebody help me to understand the issue?
Thank you,
Lynn
I have a website that is working fine. I have just turned on "option strict"
and am getting an error with the parts of my code. I have fixed everything
but this section, which has me baffled.
I am getting the error "option Strict On disallows late binding", and the
error is referring to this line of code: (3rd line in my sub below)
Select Case sender.Parent.ID
Public Sub btnNextPage_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
ViewState("CurrentPage") += 1
Select Case sender.Parent.ID
Case "pnlSelectLocation"
' do stuff here
Case "pnlFirstScreen"
' do stuff here
Case "pnlSecondScreen"
' do stuff here
Case "pnlSubmitReg"
' do stuff here
End Select
End Sub
I don't understand what the error means. I've tried various castings but
have not had any luck.
Can somebody help me to understand the issue?
Thank you,
Lynn