Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-18-2012, 07:41 PM #1
- Join Date
- Oct 2002
- NH - US
- Thanked 0 Times in 0 Posts
search query results plus some text?
I hope you will please forgive my ignorance -- I would like to do something and am not even sure it can be done.
Right now I have links in the left navigation that pulls that search result into the ContentPlaceholder section of the master page. (Ex: "http://www.website.com/products.aspx?search=product+category+A&PRO=28,64")
This results in a page that has the master page skin & the ContentPlaceHolder section says at the top "Your search of "Product Category A" returned 40 products." and the results obviously populate in there.
This is all well and good but I would like to put some copy above this. Basically I want to make a landing page for "Product Category A" (and others) that I can:
1. Add some keyword content above this server side content, like a title, some description text. So it will be basically an optimized landing page that will pull in the query string results under some text (automatically).
I know that since this landing page will be going into the ContentPlaceHolder - so is there anything like I can put another search result section in like a DIV below the title/description etc. or make the title/description go in a DIV above the query results? Or any other way of doing this?
2. Or. can I make a link that pulls in the search query above and also pulls in something like a Panel control?
I made this, but I don't see how all of this can happen with clicking a link... ?
<script runat="server"> Dim strItemName as String Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs) strItemName = Request("item") If (Not (strItemName = Nothing)) Then FindControl(strItemName & "_set", 0).Visible = True End If End Sub </script> <asp:Panel Visible="true" ID="two_set" runat="server" Width="600"> <h1> Jo Jan</h1> <img src="https://www.kqimageserver.com/uqimages/site_images/jojan.jpg" width="221" border="0" align="left" style="padding-right: 14px"/> <p class="p2">Biography of contemporary designer, Jo Jan, from her web site:</p> <p class="p2"> I'm an artist and designer surrounded by great friends, family, nature & animals. I love to travel for inspiration. I love to meet people. </p> </asp:Panel>