Update of /cvsroot/magicajax/magicajax/Core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32275/Core
Modified Files:
Tag: STABLE
AjaxCallHelper.cs
Log Message:
Access to AjaxCallHelper write methods outside of an AjaxCall is not allowed. An exception is thrown.
Index: AjaxCallHelper.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -C2 -d -r1.12 -r1.12.2.1
*** AjaxCallHelper.cs 30 Nov 2005 12:22:29 -0000 1.12
--- AjaxCallHelper.cs 3 Dec 2005 12:46:32 -0000 1.12.2.1
***************
*** 41,45 ****
get
{
! return (ArrayList)(HttpContext.Current.Items["_sbWritingLevels"]);
}
set
--- 41,50 ----
get
{
! ArrayList levels = HttpContext.Current.Items["_sbWritingLevels"] as ArrayList;
! if ( levels == null )
! {
! throw new MagicAjaxException("Using the AjaxCallHelper write methods outside of an AjaxCall is not allowed.");
! }
! return levels;
}
set
|