没有图形化显示,继承Control类

None.gif using  System;
None.gif
using  System.Data;
None.gif
using  System.Configuration;
None.gif
using  System.Web;
None.gif
using  System.Web.Security;
None.gif
using  System.Web.UI;
None.gif
using  System.Web.UI.WebControls;
None.gif
using  System.Web.UI.WebControls.WebParts;
None.gif
using  System.Web.UI.HtmlControls;
None.gif
ExpandedBlockStart.gifContractedBlock.gif
/**/ /// <summary>
InBlock.gif
/// TestRender 的摘要说明
ExpandedBlockEnd.gif
/// </summary>

None.gif namespace  USERControls
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif    
public class TestRender : System.Web.UI.Control
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        
public TestRender()
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif            
//
InBlock.gif            
// TODO: 在此处添加构造函数逻辑
InBlock.gif            
//
ExpandedSubBlockEnd.gif
        }

InBlock.gif
InBlock.gif
InBlock.gif        
protected override void Render(HtmlTextWriter writer)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif
InBlock.gif            writer.AddAttribute(HtmlTextWriterAttribute.Href, 
"http://www.163.com");
InBlock.gif
InBlock.gif            writer.AddStyleAttribute(HtmlTextWriterStyle.Color, 
"red");
InBlock.gif
InBlock.gif            writer.RenderBeginTag(HtmlTextWriterTag.A);
InBlock.gif
InBlock.gif            writer.Write(
"dd");
InBlock.gif
InBlock.gif            writer.RenderEndTag();
InBlock.gif
InBlock.gif           
InBlock.gif            
InBlock.gif            
base.Render(writer);
ExpandedSubBlockEnd.gif        }

ExpandedSubBlockEnd.gif    }

ExpandedBlockEnd.gif}

转载于:https://www.cnblogs.com/xxpyeippx/archive/2007/06/04/771124.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值