Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:828061
More Search Options
RSS Available
Matching Posts
Re: advanced search url path?
Hi. Just in case anyone else wants to make text hyperlinks from any page to show specific ads based on advanced search criteria. I was able to get it to work by making the modifications Daniel suggested and adding two invisible textboxes to Search.aspx. I added one for location and one for city. Since they are invisible it doesn't even mess up the look of the Search.aspx page. Thanks to everyone who helped and gave advice.
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/21/2009
Re: advanced search url path?
Hi. Well, Search.aspx uses categorydropdown just for categories and the search text box actually searches the ad title text. That's pretty much original to the kit. There is an option to go to AdvancedSearch.aspx for price, location (I use a dropdown for states/countries), date, and City (I use a textbox for city). In Search.aspx.vb it sort of looks like the advanced search criteria is supposed to show up in the search text box like location + city. Case 2 NormalSearch.Visible = False Searching
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/20/2009
Re: advanced search url path?
I tried adding another textbox for the city field to Search.aspx. The search returns the correct ads for category and city with the new textbox, so I'm going to try adding one for location and see how it goes. Thanks for all the help. Bev
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/20/2009
How to find url on dynamic page
Hi. I need to create a hyperlink to a dynamic page, based on search criteria. I can get to the category by using http://www.mysite.com/AdvancedSearch.aspx?c=XXX . I want to go deeper into the search criteria. It goes like this 1. Category 2. Location 3. City. My visible url only goes to the category level even if the search includes location and city. How can I find the real url to specify category, location and city? Thanks.
Posted to
Web Forms
(Forum)
by
redwoodbev
on 11/19/2009
Filed under: dynamic content, URL path
Re: How to find url on dynamic page
Hi. Yes, exactly! However, I don't know where to find the param names. Category is no problem. It's ?c=XXX. I'm trying to find out what to call for location and City. When I try &Location or &location or &loc or &l.. I get the following error Parser Error Message: The XML sitemap config file web.sitemap could not be loaded. An error occurred while parsing EntityName. My browser doesn't show the whole url so I can read it. The address line only shows AdvancedSearch
Posted to
Web Forms
(Forum)
by
redwoodbev
on 11/19/2009
Re: How to find url on dynamic page
Thank you. Adding the & eliminated the error. However, I still can't figure out what parameter name to use for location. When I look at the source for querystring for category I find Categoryid, but what works id c=XXX. I do not find any querystring for location although I am able to search by that field. c=xxx&location=California returns all ads, not just the ones with location=California. I tried capturing the url, but it is too fast and too long for the lower address bar. The
Posted to
Web Forms
(Forum)
by
redwoodbev
on 11/19/2009
Re: How to find url on dynamic page
Hi. I finally realized the url I want is Search.aspx rather than AdvanceSearch.aspx. I don't see querystring for location or city. But, I do see the following; Can anyone help with how to use this info in a hyperlink to show ads with a certain location and city? Thanks Case NormalSearch.Visible = 2 False SearchingByAdvancedPanel.Visible True Dim sb As New System.Text.StringBuilder() If (AdvancedSearch.MaximumPrice <> -1) Then sb.Append("max price = """ & AdvancedSearch
Posted to
Web Forms
(Forum)
by
redwoodbev
on 11/19/2009
Re: advanced search url path?
I know I must be close, but I'm missing something simple. Here is my hyperlink from my sitemap <siteMapNode url=" http://www.mysite.com/Search.aspx?c=243&location=California " title="Helicopters" roles="*"/> I'm getting the correct category results but every location. It doesn't seem to matter whether location or category is listed first.
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/19/2009
Re: advanced search url path?
Hi, I just tried typing the url into the address bar and got the same results..right category but all locations. Here is my Search.aspx.vb code. It's pretty much original from the kit. I'm not sure which part is important, so here's the whole thing. Thanks for your help. Imports System Imports System.Web.UI.WebControls Imports AspNet.StarterKits.Classifieds.BusinessLogicLayer Imports AspNet.StarterKits.Classifieds.Web Partial Class Search_aspx Inherits System.Web.UI.Page ' To customize
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/19/2009
Re: advanced search url path?
Hi. I've done the things you suggested. And, now the location shows up on Search.aspx like this Advanced Search Criteria location = "Texas" city = "Unknown" It looks right, but doesn't return any ads and I do have ads in the category/location/city as requested. Also, Unknown shows up in the text search box Search by Title Text --- All Categories ---------------------------------------- Aircraft For Sale -- Aerobatic ---- Extra ---- Skybolt -- Antique/Classic ---- Aeronca
Posted to
Classifieds Starter Kit
(Forum)
by
redwoodbev
on 11/19/2009
Page 1 of 9 (88 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online