cesark
Programmer
- Dec 20, 2003
- 621
Hi!
Is it possible to do a select case with VB.NET using two variables or parameters? For example, something like this:
..But this code doesn' t work.
Thanks,
Cesar
Is it possible to do a select case with VB.NET using two variables or parameters? For example, something like this:
Code:
Dim family As integer = familyProduct.SelectedItem.Value
Dim prod As integer = product.SelectedItem.Value
Select Case (family and prod)
Case 1 and 22
Response.Redirect("anotherPage.aspx")
Case 2 and 29
Response.Redirect("anotherPage2.aspx")
Case 3 and 36
Response.Redirect("anotherPage3.aspx")
...
End Select
Thanks,
Cesar