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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

single code in an asp string variable

Status
Not open for further replies.

Nanda

Programmer
Nov 14, 2000
104
US
Hi All,

How can I add a single quote(') in a string variable in asp script.

E.g. MyStr = "My pet's name is tommy."

Thank you
 
Ummmm.. I'm not sure what you are asking. The example you give is exactly correct...

Code:
<%
myStr = &quot;My dog's tummy has fleas.&quot;
response.write myStr
%>


[sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top