Apr 27, 2010, 2:33 PM
[CLOSED] String.format defined in ExtJS and in ASP.NET Ajax
I have a HTML Editor on a page with both Ext.net ResourceManager and ASP.NET ScriptManager. It seems like both javascript library has its own implementation of String.format . I am getting the javascript error:
Sys.ArgumentException: The format string is invalid.
Parameter name: format
I tried to reproduce with a small example but can not get it to fail. My page is fairly complex so it will be hard to duplicate.
From the callstack, this is what is being called:
this.initFrame()
b.write(this.getDocMarkup())
return String.format('<html><head><style type="text/css">body{border: 0; margin: 0; padding: {0}px; height: {1}px; cursor: text}</style></head><body></body></html>',this.iframePad,a)
Sys.ArgumentException: The format string is invalid.
Parameter name: format
I tried to reproduce with a small example but can not get it to fail. My page is fairly complex so it will be hard to duplicate.
From the callstack, this is what is being called:
this.initFrame()
b.write(this.getDocMarkup())
return String.format('<html><head><style type="text/css">body{border: 0; margin: 0; padding: {0}px; height: {1}px; cursor: text}</style></head><body></body></html>',this.iframePad,a)