December 17, 2004

</script> cannot be scripted

In ASP.NET, I cannot write the string - "</script>" to the page. The JIT compiler will throw an error. As explained by Microsoft here, this is actually by "design". To work around this issue, I had to split the text into two strings. "</" + "script>". I think any other combination of string concatenation will work too.


Post a Comment

<< Home