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:
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.
<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")%>">
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just noticed that. Worked great. You are the man once again Big Monty!
<%Response.Write Server.HTMLEncode(and rs3("m_material")) %>