摘要: 打开[SQL Server 配置管理器](如果是MSSQL2005,在运行中输入SQLServerManager.msc回车)(如果是MSSQL2008或R2,在运行中输入SQLServerManager10.msc回车)-->点击[SQL Server]服务-->重启SQL Server 服务 阅读全文
posted @ 2012-12-26 16:40 消沉 阅读(396) 评论(0) 推荐(0) 编辑
摘要: //随机红球protected void Button1_Click(object sender, EventArgs e) { Random rnd = new Random(); ArrayList list=new ArrayList (); int big = 6; for(int i=0;i <big;i++) { int num= rnd.Next(1,34); if (!list.Contains(num)) ... 阅读全文
posted @ 2012-12-26 15:32 消沉 阅读(325) 评论(0) 推荐(0) 编辑
摘要: private bool fileUpLoad() { if (txtFup.HasFile) { string fileContentType = txtFup.PostedFile.ContentType;//获取客户端上传文件的类型 if (fileContentType == "image/gif" || fileContentType == "image/pjpeg")//文件类型如果为gif或者jpg的话,条件为true { ... 阅读全文
posted @ 2012-12-26 11:33 消沉 阅读(398) 评论(0) 推荐(0) 编辑
摘要: private void BindDropDownList(DropDownList drop,List<Model.City>list){ for(int i=0;i <list.count;i++) { drop.Items.Add(new listitem(list[i].name,list[i].Id)); } }//默认选中某一项,作为当前项private void DropDwonListIndex_Bind(DropDownList drop,string name){for (int i=0;i<drop.items.count;i++){ if(dro 阅读全文
posted @ 2012-12-26 09:45 消沉 阅读(808) 评论(0) 推荐(0) 编辑