Link to home
Start Free TrialLog in
Avatar of Robert Francis
Robert Francis

asked on

Problem with quotation mark in dynamically created url

I have a line of code that dynamically creates a url. See below:

<a href="request_add.asp?id=<%Response.Write rs3("m_id")%>&requestor=<%Response.Write rs3("m_requestor")%>&quantity=<%Response.Write rs3("m_qty")%>&jobno=<%Response.Write rs3("m_jobno")%>&material=<%Response.Write rs3("m_material")%>">

Open in new window


Problem is "m_material" (the last one) occasionally has a quotation mark in it which makes the url prematurely end.

Any ideas to help me solve this problem.
Avatar of Big Monty
Big Monty
Flag of United States of America image

Try this

<%Response.Write Server.HTMLEncode(and  rs3("m_material")) %>
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
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
Avatar of Robert Francis
Robert Francis

ASKER

Just noticed that. Worked great. You are the man once again Big Monty!