Replace quotes in string.

s = s.Replace("\"", "");

Generating quotes in string.

Ex: label.setObjectText(“Barcode1”, “1008800400002”);

sb.Append(@"label.setObjectText(""Barcode1"", """ + row["Barcode1"].ToString() + @""");" + Environment.NewLine);

Display quotes string in razor.

@Html.Raw(Model.PrintStringWithQuote)
Last modified: April 18, 2019

Author

Comments

Write a Reply or Comment