Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String with double quotes - how to put in test
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01668335
Message ID:
01668383
Views:
69
This message has been marked as a message which has helped to the initial question of the thread.
You might find this useful:

http://samples.west-wind.com/StringToCodeConverter/

This lets you quickly convert strings into a number of differerent encoded text formats.

+++ Rick ---

>>You need double the double quotes in string. Check verbatim string in C# documentation.
>>
>>Wrong:
>>
>>  string something = @"Hello "Naomi"";
>>
>>
>>Right:
>>
>>  string something = @"Hello ""Naomi""";
>>
>>
>>PS: Escaping wouldn't work in a verbatim string.
>>If it were VB.Net then you could simply surround your text with tags.
>
>Hi Cetin,
>
>I was hoping for some TEXT/ENDTEXT feature. I've been testing JSON output and so I needed to use the strings with double quotes. First one I manually updated, second I updated through SQL Server :) I decided that 2 tests are enough :)
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform