I am working on a search page and using asp array but it doesn't seem to work for me. Can someone please help. Thanks in advance.
Dim A, B, title, titleset
A = array("Receptionist", "Front desk clerk", "Customer service Assistant")
B = array("Data entry clerk", "Computer Operator")
Select Case title
case "Receptionist"
titleset = Join(A,",")
case "Data entry clerk"
titleset = Join(B,",")
End Select
Basically, what I am trying to do is I have a drop down menu(first page)from which I select "receptionist", will like to show all the related titles in the result page(second page) such as receptionist, Front desk clerk, customer service assistant which i have stored in the database. This is a database driven search.
When I do a response.write to see the titleset values, it is showin empty. I feel the problem is in the array, maybe I am not defining the array properly. Should I have define array as follows:
Dim A(2), B(1)
A(0) = "Receptionist"
A(1) = "Front Desk Clerk"
A(2) = "Customer Service Assistant"
B(0) = "Data Entry Clerk"
B(1) = "Computer Operator"
Select Case title
case "Receptionist"
titleset = Join(A)
case "Data Entry clerk"
titleset = Join(B)
End Select
Please can someone come forward to help my problem.