Use the date written with C # Select the web custom control (revised)

xiaoxiao2021-03-17  196

Many Web Pages To use the date input, .NET comes with the calendar control each time you need to interact with the server. I have developed a web control in order to discuss it. Refer to the date selection written in JavaScript, it is possible to write in the control in the control. The code is not complicated, and everyone will share the following. Everyone helped find Bug and mentioned improvement.

The effect is as follows: Source code download: TestControl.rar testControl (v1.0.1) .rar (Selling the problem that will be blocked by SELECT) BUG: The control is placed in the Frame page will be wrong: "Parent.Event is empty Or is not an object "to remove Output.writeline in InputCalendar.cs;" Parent.Event.cancelbubble = true; The meaning of this sentence is to set or get the current event to bubbber in the event handle. It seems to be useless in the current application, so it is not tight. How to add AutoPostPack features: There is a description in comments. Value solve the problem in a user control: the original: output.AddAttribute (HtmlTextWriterAttribute.Id, this.ID); output.AddAttribute (HtmlTextWriterAttribute.Name, this.ID); read: output.AddAttribute (HtmlTextWriterAttribute.Id, THIS.UniqueID; Output.addattribute (HTMLTextWriterattribute.Name, this.Unique);

Http://esshs.cnblogs.com/archive/2005/03/29/127691.html

转载请注明原文地址:https://www.9cbs.com/read-129646.html

New Post(0)