Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The whole point of using a <code>StringBuilder</code> is to <strong>build</strong> the string part by part. If you break up the long string into logical portions, then it becomes easier for you to figure out any errors as well as make modifications (<em>and believe me, it becomes much easier to read!</em>).</p> <p>Also, When using verbatim string literals in C#, you still need to escape double quotes with another double quote. The following code compiles correctly:</p> <pre><code>sb.Append(@"&lt;script type='text/javascript'&gt;"); sb.Append(@"&lt;!-- //&lt;![CDATA["); sb.Append(@"var m3_u = (location.protocol == 'https:' ? 'https://rre.rrt.com/sss.php' : 'https://rre.rrt.com/sss.php');"); sb.Append(@"var m3_r = Math.floor(Math.random() * 99965449);"); sb.Append(@"if (!document.MAX_used) document.MAX_used = ',';"");"); sb.Append(@"document.write(""&lt;script type='text/javascript' src='"" + m3_u);"); sb.Append(@"document.write(""?zoneid=311120&amp;amp;target=_top"");"); sb.Append(@"document.write('&amp;amp;cb=' + m3_r);"); sb.Append(@"if (document.MAX_used != ',') document.write(""&amp;amp;exclude="" + document.MAX_used);"); sb.Append(@"document.write(document.charset ? '&amp;amp;charset=' + document.charset : "); sb.Append(@"(document.characterSet ? '&amp;amp;charset=' + document.characterSet : ''));"); sb.Append(@"document.write(""&amp;amp;loc="" + escape(window.location));"); sb.Append(@"if (document.referrer) document.write(""&amp;amp;referer="" + escape(document.referrer));"); sb.Append(@"if (document.context) document.write(""&amp;context="" + escape(document.context));"); sb.Append(@"if (document.mmm_fo) document.write(""&amp;amp;mmm_fo=1"");"); sb.Append(@"document.write(""'&gt;&lt;\/script&gt;"");"); sb.Append(@"//]]&gt;--&gt;"); sb.Append(@"&lt;/script&gt;"); sb.Append(@"&lt;noscript&gt;"); sb.Append(@"&lt;a href='https://rre.rrt.com/sss.php?n=ad4565c1&amp;amp;cb=2244' target='_top'&gt;"); sb.Append(@"&lt;img src='https://rre.rrt.com/sss.php?zoneid=36540&amp;amp;n=a535c1' border='0' alt='' /&gt;&lt;/a&gt;"); sb.Append(@"&lt;/noscript&gt;"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload