/// <summary> /// 构造函数,可确定相关客户端对象的类型。 /// </summary> public SampleControl() : base(true, HtmlTextWriterTag.Div) { //在客户端,客户端控件对应的DomElement为DIV控件 this.inputAttribute = new System.Web.UI.AttributeCollection(this.ViewState); this.samObject = new SampleObject(SNTPClient.AdjustedTime, "LiShiMin", 188); this.CssClass = "sampleControl"; }
/// <summary> /// 构造函数,可确定相关客户端对象的类型。 /// </summary> public SampleControl() : base(true, HtmlTextWriterTag.Div) { //在客户端,客户端控件对应的DomElement为DIV控件 this.inputAttribute = new System.Web.UI.AttributeCollection(this.ViewState); this.samObject = new SampleObject(DateTime.Now, "LiShiMin", 188); this.CssClass = "sampleControl"; }
public SampleObject GetSampleObject(DateTime dt, string name, int length) { SampleObject o = new SampleObject(dt, name, length); return(o); }
public SampleObject GetSampleObject(DateTime dt, string name, int length) { SampleObject o = new SampleObject(dt, name, length); return o; }