Solved

ASPX Search Problem

Posted on 2011-09-22
3
247 Views
Last Modified: 2012-05-12
We have a company Web site with a 'Search' box.
If a customer searches for a product with a '/' in the code they get an error: -
Server Error in '/' Application.
Content controls are allowed only in content page that references a master page.

I don't think it likes the forward slash. The code being searched has 2: XXXXX/XX/XXXX

Can anyone help?
0
Comment
Question by:HKFuey
3 Comments
 
LVL 5

Expert Comment

by:zvytas
ID: 36581213
Is that website publicly available?
0
 
LVL 4

Accepted Solution

by:
jmnf earned 500 total points
ID: 36581218
You probably need to escape the forward slashes.

Get the string from the Search Box and escape the slashes so that the search engine knows they are to be treated strictly as a single string.

The following link may help you if this is the case.
http://msdn.microsoft.com/en-us/library/aa691090%28v=vs.71%29.aspx

Otherwise, please tell us what language are you using in code behind (if any) or if javascript is fine with you, we can find a better solution.
0
 

Author Closing Comment

by:HKFuey
ID: 36598358
Thanks for the help!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question