Question : C# textbox maxlength

Why is the following code not setting the max length for my textbox? Is is becuase its Multiline????
1:
2:
3:
4:
5:
TextBox CommentBox = new TextBox();
            CommentBox.MaxLength = 100;
            CommentBox.TextMode = TextBoxMode.MultiLine;
            CommentBox.Height = new Unit("80px");
            CommentBox.Width = new Unit("400px");

Answer : C# textbox maxlength

Random Solutions  
 
programming4us programming4us