On your index page you have a text field for search and a submit button, but your submit button also has an <a> tag with an href around it. I'm not sure what you are trying to do with that.
The details page doesn't have any code that refers to the search field on it at all. It looks like it would only filter by a ProdID url parameter. Are users expected to enter a product id into that search field?
I need to understand what you are trying to do before I can comment on how to fix it.