摘要:
其实很简单,只是在窗体加载的时间需要两句代码就ok了小数点设为两位,增幅为0.25即numericUpDown1.DecimalPlaces = 2;numericUpDown1.Increment = 0.25M; 阅读全文
摘要:
View Code 1 public partial class City : System.Web.UI.Page 2 { 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if(!IsPostBack) 6 { 7 BindProv(); 8 BindCity(); 9 }10 }11 12 //绑定市13 private void BindCity()14 {15 ddlcity.Items.Clear();16 DataTable citydt = new CitySer().GetAllCityByProvId( 阅读全文