I try this one:
Code:
path="form/description[contains(<%= request.Form("search_by")%>,'<%= request.Form("txtSearch")%>')]//*";
and it still error and said that unknown method...
<%= request.Form("search_by")%>
to get from drop down menu which is named "search_by"
<%= request.Form("txtSearch")%>
to get from text field which is named "txtSearch"
in dropdown menu there are some values like: type, author, dates, title, etc
In text field, users can type the keyword that they want to search.
if I do not use ASP code, it should look like this:
Code:
path="form/description[contains(type,'black')]//*";
or
Code:
path="form/description[contains(author,'Someone')]//*";
or
Code:
path="form/description[contains(year,'2008')]//*";
so, because I wanna get "year, type, author" from the drop down menu, I use ASP code.
And, because I wanna get the value from the user that has been typed,
I also use ASP code to get it.
I still have no idea. Or maybe I ask this problem to ASP forum?
Am I in right place to ask my problem?
Thank you all for your helping
:)