Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-18-2012, 06:41 PM   PM User | #1
batikdruid
New Coder

 
Join Date: Oct 2002
Location: NH - US
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
batikdruid is an unknown quantity at this point
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... ?

Code:
<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> &nbsp; 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 &amp;   animals. I love to travel for inspiration. I love to meet people. </p>
</asp:Panel>
Can anything like this be made to happen? This text panel to come in ABOVE the search query results from a hyperlink? Thanks
batikdruid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:57 PM.


Advertisement
Log in to turn off these ads.