From: Argiris K. <be...@us...> - 2005-12-05 18:40:58
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12813/Core Modified Files: AjaxCallHelper.cs Log Message: Added 'WriteFormat' and 'WriteLine' methods at AjaxCallHelper.cs Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** AjaxCallHelper.cs 4 Dec 2005 03:25:15 -0000 1.13 --- AjaxCallHelper.cs 5 Dec 2005 18:40:50 -0000 1.14 *************** *** 370,375 **** } /// <summary> ! /// Writes to the Response. Included for convenience. /// </summary> /// <remarks> --- 370,385 ---- } + public static void WriteFormat( string format, params object[] args) + { + Write (String.Format(format, args)); + } + + public static void WriteLine( string text ) + { + Write (text + "\r\n"); + } + /// <summary> ! /// Writes javascript to Response during an AjaxCall. /// </summary> /// <remarks> *************** *** 382,390 **** /// </example> /// <param name="text"></param> ! public static void Write( string text) { // Use the string builder ! //Response.Write (text + "\r\n"); ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text + "\r\n"); } --- 392,399 ---- /// </example> /// <param name="text"></param> ! public static void Write( string text ) { // Use the string builder ! (_sbWritingLevels[_writingLevel] as StringBuilder).Append (text); } |