How to let customizes the original Width and Height properties available

xiaoxiao2021-03-06  114

Need to inherit the control from WebControl

And write this in the render method:

Dim thewidth as string = me.width.tostringdim theHeight as string = me.height.tostring

Output.addattribute (HTMLTextWriterattribute.Height, Theheight) Output.addattribute (HtmlTextWriterattribute.Width, Thewidth)

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

New Post(0)