Update of /cvsroot/magicajax/magicajax/Core/UI/Controls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19391/Core/UI/Controls
Added Files:
AjaxHtmlAnchor.cs AjaxHtmlImage.cs
Log Message:
HtmlImage and HtmlAnchor are not working properly for Session/Cache. Added some inheriting controls that do.
--- NEW FILE: AjaxHtmlAnchor.cs ---
using System;
using System.Web.UI.HtmlControls;
namespace MagicAjax.UI.Controls
{
/// <summary>
/// HtmlAnchor control intented to be used for 'Session'/'Cache' page storing modes
/// instead of ASP.NET's HtmlAnchor.
/// </summary>
/// <remarks>
/// The HtmlAnchor control of ASP.NET, looses its 'Href' property when an AjaxCall
/// is invoked at 'Session'/'Cache' page storing modes. This control don't have the
/// same problem and can be used to replace ASP.NET's HtmlAnchor.
/// </remarks>
public class AjaxHtmlAnchor : HtmlAnchor
{
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
string href = this.HRef;
base.Render (writer);
this.HRef = href;
}
}
}
--- NEW FILE: AjaxHtmlImage.cs ---
using System;
using System.Web.UI.HtmlControls;
namespace MagicAjax.UI.Controls
{
/// <summary>
/// HtmlImage control intented to be used for 'Session'/'Cache' page storing modes
/// instead of ASP.NET's HtmlImage.
/// </summary>
/// <remarks>
/// The HtmlImage control of ASP.NET, looses its 'Src' property when an AjaxCall
/// is invoked at 'Session'/'Cache' page storing modes. This control don't have the
/// same problem and can be used to replace ASP.NET's HtmlImage.
/// </remarks>
public class AjaxHtmlImage : HtmlImage
{
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
string src = this.Src;
base.Render (writer);
this.Src = src;
}
}
}
|