I run string.Format on a readonly line that contains some HTML + javascript, but instead I get a System.FormatException .
This is my format string:
<script type="text/javascript"> function {0}_showHideFieldWindow() { if ({0}.IsCustomizationWindowVisible()) { {0}.HideCustomizationWindow(); } else { {0}.ShowCustomizationWindow(); } } </script>
All I do is pass the name of the object. Like this:
string.Format(javascript, "grid");
James couvares
source share