I have the "default" content on the left side of my application, which is included in a header page: a search box and a Login box If the user is on the search page, then I want to add a list of search filters (such as brand, price) on the left side of the page; In this case, the left-hand searching requires access to the given criteria (e.g. keyword search for "black leather chair"); I create a very complex query on the search page, search.asp
, and I do not want to duplicate it with any kind of huge if..then
statement Also on the left content page
Is there a way to do this and "attach" additional content in that file which is already included in the page? Basically some things like Rails on Ruby, where I can say on this page, these things are & lt; Div id = "left" & gt;
Add to node. I'm not really an expert at classic ASP (and I wanted to use it), but my boss wants the filters on the left side of the page for the search page as well as the search box (all the pages And also I am fully convinced that how to control it in this way without restructuring the whole page.
You can catch the current path and file in ASP:
pagePath = request.ServerVariables ("PATH_INFO")
You can split the string, grab the last element, so extract the appropriate content based on a select case and file name. :
Select Case Page name case "search.asp" ... case "products.asp" ... case other Select end ..
Comments
Post a Comment