Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when passing a "-" through the querystring

Status
Not open for further replies.

sksc

Programmer
Dec 6, 2006
2
US
I am passing parameter that has a hyphen in it say for example ("test-123") when I call the viewrpt.cwr by passing this parameter I am getting the syntax error. I tried the URLEncoding but the "hyphen" remains the same and gives me a syntax error when the value is passed to the viewrpt.cwr.

Does any one know the solution for this?

Help me out. Thanks in advance.
 
Hi,
Is there any more to the syntax error message( Like Line#, etc)?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,
This is the error message I am getting, "The syntax of the value for prompt 'prompt1' is incorrect. Please correct the syntax and try again"

For your reference I am giving the value that I see in the browser window,


This error occurs when ever I use special characters as the parameter value. I have been searching for a solution for more than 2 days now.
 
Hi,
Have you tried enclosing the value in single or double quotes?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top