首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 控件适配器以及你如何重新渲染HTML使用它们

控件适配器以及你如何重新渲染HTML使用它们

  • 资源大小:908.00 B
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: controladapters

资 源 简 介

Control Adapters The most basic implementation if you are looking to start on control adapters this is perfect for you. Mostly 10 lines of code which makes it all work for a label to be re-rendered into users browser. //---------------------------------------------------------------------------------------- //LabelAdapter.cs (class file) //---------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace JB.Adapters { public class LabelAdapter : System.Web.UI.Adapters.ControlAdapter { protected override void Render(HtmlTextWriter writer) { Label l = Control as Label; writer.WriteLine(); writer.WriteBeginTag("label");

文 件 列 表

ControlAdapters
App_Browsers
LabelAdapter.cs
App_Browsers
Customrender.browser

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP