温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:多功能文本框控件源码及示例
当前文件:
TextControl/TextControl/ZLTextBoxDesigner.cs,打开代码结构图
TextControl/TextControl/ZLTextBoxDesigner.cs,打开代码结构图1using System.IO; 2
using System.Web.UI; 3
using System.Web.UI.WebControls; 4
using System.Web; 5
6
namespace BaseText 7
{ 8
/// <summary> 9
/// ZteDateTextbox 的摘要说明。 10
/// </summary> 11
public class ZLTextBoxDesigner:System.Web.UI.Design.ControlDesigner 12
{ 13
public ZLTextBoxDesigner(): base() 14
{ 15
16
} 17
// Returns the html to use to represent the control at design time. 18
public override string GetDesignTimeHtml() 19
{ 20
ZLTextBox ctl = (ZLTextBox)Component; 21
string html = base.GetDesignTimeHtml(); 22
StringWriter sw = new StringWriter(); 23
HtmlTextWriter tw = new HtmlTextWriter(sw); 24
25
TextBox text1 = new TextBox(); 26
text1 = ctl; 27
text1.RenderBeginTag(tw); 28
return sw.ToString() ; 29
} 30
} 31
} 32





}