J
Jeff via DotNetMonster.com
Hi,
I'm trying to open a new window to bring up an external link once a value
is selected from a drop down list. I'm trying the following but I get the
error:
'If' must end with a matching 'End If'
Sub State_SelectedIndexChanged(sender As Object, e As EventArgs)
If State.SelectedItem.Value="CT" Then
Response.Write("<script>window.open("PageName.aspx")</script>")
End if
End Sub
I'm trying to open a new window to bring up an external link once a value
is selected from a drop down list. I'm trying the following but I get the
error:
'If' must end with a matching 'End If'
Sub State_SelectedIndexChanged(sender As Object, e As EventArgs)
If State.SelectedItem.Value="CT" Then
Response.Write("<script>window.open("PageName.aspx")</script>")
End if
End Sub