>>>如果输入则只能输入2-3:use a RegularExpressionValidator, set its ValidateExprssion to "^(2|3)$">>>想实现如果不输入,则该数据库中对应的字段列为nullon the server side, trycmd.Parameters["ParamName"].Value = TextBox1.Text == ""? DBNull.Value : Convert.ToInt32(TextBox1.Text);
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货