magicajax-0.3.0-source/Core/UI/Controls/AjaxHtmlAnchor.cs
(完整代码) 734Busing 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;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。