Solved

ASPX Search Problem

Posted on 2011-09-22
3
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

734 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