<fastdev:ValidateTextBox ID="treename" runat="server" AllowEmpty="false" MaxLength="50" ValidateFontSize="12px"> </fastdev:ValidateTextBox>
还有一种直接用验证控件的
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_ColumnName"
Display="Dynamic" ErrorMessage="栏目节点名称不可为空"></asp:RequiredFieldValidator>