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

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

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

  • 资源大小:908.00 B
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分: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
  • Zzz 1天前 成为了本站会员

  • Katou Megumi 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 流浪 1天前 成为了本站会员

  • 也是一生 1天前 成为了本站会员

  • king666 2天前 成为了本站会员

  • ﹏約啶℡ 2天前 成为了本站会员

  • Long for 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 金. 2天前 成为了本站会员

0.189844s