Last post Dec 12, 2007 01:31 PM by ashmetry
Dec 11, 2007 10:00 PM|darkknight187|LINK
I have looked throughout the classifieds kit as to how it has implemented this.
It works for two features.
Go to your search page, and add ?c=5 and it will only show adds in category 5.
It also works with members, like this,
Does anyone know where it is telling the application to do this?
I want to make hard coded links showing only in location and category.
So I need location to work.
I went through everthing and I missed it somewhere, the only thing I could find that had to do with it was in controls for category browse, but nothing for member at all, which is in there, somewhere.
Has anyone seen this??
Dec 11, 2007 10:22 PM|darkknight187|LINK
You know, coding seems to be a lot like grocery shopping in a new store.
As soon as you breakdown and finally ask for help finding something. You turn around and there it is.
For anyone interested, the code in question is on the Search.aspx.vb in the Page_Load section.
Now I just need to figure out how to add location to it, and perform a multiple hard coded search.
I'll post back the answer.
Dec 12, 2007 09:39 AM|ashmetry|LINK
You just need to to edit the Search.aspx.cs/vb and pass the location..
string locQs = Request.QueryString["location"];
//pass locQs to your BLL which in turn passes it to the DAL, which you sould already have that setup from the advanced search
Dec 12, 2007 01:01 PM|darkknight187|LINK
I am still using the conrols for the advanced search, so I coded it a little differently, but it seems to be working.
I added this to the codefile for my search page.
I added this to the Advanced search controls.
So the first step is done, but does anyone have any ideas how to hard code into the url two searches.
such as, /Search.aspx?loc=Bothell?c=5
So it will show all listings in category 5 and with the word bothell?????
I'm still looking online to try other methods, but no luck yet.
Dec 12, 2007 01:09 PM|ashmetry|LINK
You seperate different variables with & /Search.aspx?loc=Bothell&c=5
You seperate the file file location (usually ends with the extension) from the querystrings with the question mark ?
Is that your question? Did i understand you correctly?
Dec 12, 2007 01:19 PM|darkknight187|LINK
Thanks Ash, right after I posted, I thought of this asp.net site does a lot of multiple searches that end up hard coded.
So I was testing the results, which work.
You are right though.
It's funny though, I swear if you look through my post, I will figure out most on my own, but for whatever reason I can't find the answer until I post a question. I guess I think it more through or something.
But anyway thanks for the help, I think this should really boost my search engine presence with keywords. I'm making links right from my home page with popular cities.
Talk to you soon.
Dec 12, 2007 01:31 PM|ashmetry|LINK
Ya, thats a good addition. I'm working on a bunch of SEO stuff also. Another tip (for everybody) is to sign up for google analytics...IT'S AWESOME!
I'm thinking about putting a list of SEO stuff that can be made to the classified website (or any website) to make it much more SE friendly.
But ofcourse i need to find the time :(
If anybody is intersted, ill put it on my blog, so let me know via my blog (http://blog.love2trade.com)
"love2trade SEO" Optimizing search engine presence