LearningAndEarning
Technical User
I am having a problem in DWMX with querystrings. I have a page on the web site I am working on ( called Browse Books on this page are links for searching by category, language etc. I am URL Encoding these links and sending them to results pages. The results pages contain the SQL code to accept the URL links.
Problem is I can only seem to get a single query per results page. I don't want to have to create 30+ pages for this browse page. In the SQL Statement Builder in DWMX I am using Variables to decode the URL the run time value would be for example Request.QueryString("Art") "Art" being the encoded value from the browse page. This works fine with only one variable decoded per page, but when I try to do multiple decodes the results start coming back almost randomly.
Here's an example of what is being put in the SQL builder:
SELECT* FROM tblBooks WHERE (Category1 = 'mmColParam' OR Category2 = 'mmColParam') OR (Category1 = 'mmColParam2' OR Category3 = 'mmColParam2')
Any suggestions as to what I am doing wrong?
Problem is I can only seem to get a single query per results page. I don't want to have to create 30+ pages for this browse page. In the SQL Statement Builder in DWMX I am using Variables to decode the URL the run time value would be for example Request.QueryString("Art") "Art" being the encoded value from the browse page. This works fine with only one variable decoded per page, but when I try to do multiple decodes the results start coming back almost randomly.
Here's an example of what is being put in the SQL builder:
SELECT* FROM tblBooks WHERE (Category1 = 'mmColParam' OR Category2 = 'mmColParam') OR (Category1 = 'mmColParam2' OR Category3 = 'mmColParam2')
Any suggestions as to what I am doing wrong?