Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

ASP Invalid Character

I get invalid char when I try to put the Response Write in code.

Invalid character

/launch.asp, line 107

Response.Write  "<a href="/default.asp?name=<%=rs("repno")


How do I add the "?"
SOLUTION
Avatar of pateljitu
pateljitu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nap0leon
nap0leon

I missed a double-quote in the 3rd example:
Response.Write "<a href=""/default.asp?name=" & rs("repno") & """>anchor text here</a>"

Open in new window


The "three double-quotes" is broken down into:
the first double-quote open a new set of text
the next two double-quotes turn into a single double-quote in the rendered text