I have a page with a listbox. The user selects a value and the next page opens with more information about the selected value. This is my code:
<%
dim varlocation
varlocation = lstLocation.getText()
%>
<!--search button to pass value of variable-->
<a href="displayJobs.asp?Location=<%=varlocation%>">Search</a>
This is the error I'm getting:
Data type mismatch in criteria expression.
Also, in the URL, Location= the first value of the listbox instead of the selected one.
What am I doing wrong?
I would appreciate any help.
<%
dim varlocation
varlocation = lstLocation.getText()
%>
<!--search button to pass value of variable-->
<a href="displayJobs.asp?Location=<%=varlocation%>">Search</a>
This is the error I'm getting:
Data type mismatch in criteria expression.
Also, in the URL, Location= the first value of the listbox instead of the selected one.
What am I doing wrong?
I would appreciate any help.