Solved

ASPX Search Problem

Posted on 2011-09-22
3
240 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now