Solved

ASPX Search Problem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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…

920 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

13 Experts available now in Live!

Get 1:1 Help Now