Checkboxlist also encountered some problems in the project yesterday. repeatdirection = "horizontal"
<Asp: checkboxlist id = "checkboxlist" runat = "server" repeatlayout = "flow" repeatcolumns = "5" repeatdirection = "horizontal" cellspacing = "0">
</ASP: checkboxlist>
(<Asp: textbox id = "TXT" runat = "server" maxlength = "100" cssclass = "imeon"> </ASP: textbox>)
Parse it into HTML and there will be one at the end <br/>. If you want to add a textbox at the end, the line feed will always show the customer dislike. There is no way for the customer to be God.
Later I thought of a js method and recorded it here.
<Body onload = "setcheckboxlist ()">
Function setcheckboxlist ()
{
VaR objcheckboxlist = Document. getelementbyid ("checkboxlist ");
If (objcheckboxlist! = NULL)
{
VaR olastchild = objcheckboxlist. lastchild;
Objcheckboxlist. removechild (olastchild );
}
}