insert double quotes in asp

by Nirmala 2009-11-26 18:00:00

Insert double quotes
In PHP and other languages we can use two type of quotes (single and double) but in ASP we cant use single quote because it is treated as a comment.
If you want to display some text within quotes you have to use two double quotes as follows.
<% Dim str
str="This is a ""example"" text"
Response.Write(str)
%>

Output
This is a "example" text

Tagged in:

1256
like
1
dislike
0
mail
flag

You must LOGIN to add comments