I'm running string.Format
on a readonly string that contains a bit of HTML + javascript but I get a System.FormatException
instead.
This is my format string:
<script type="text/javascript">
function {0}_showHideFieldWindow() {
if ({0}.IsCustomizationWindowVisible()) {
{0}.HideCustomizationWindow();
} else {
{0}.ShowCustomizationWindow();
}
}
</script>
All i'm doing is passing in the object name. Like this:
string.Format(javascript, "grid");