08 2006 档案

摘要:其中用FileStream,FileShare写文件,可以实现文件的读写共享,写文件时,用户还可以读取文件 1.sw= new StreamWriter(logFile,true,Encoding.UTF8); 2.fs = new FileStream(FilePath,FileMode.Create,FileAccess.Write,FileShare.Read); 阅读全文
posted @ 2006-08-27 07:47 wenanry 阅读(296) 评论(0) 推荐(0) 编辑
摘要:if(e.Item.ItemType==ListItemType.EditItem) { ///得到Text类型的值 . string username = ((TextBox)e.Item.FindControl("UserName")).Text.ToString(); ///得到DropDownList类型的值 int province = int.Parse(((DropDownList)e.Item.FindControl("province")).SelectedValue); ///得到CheckBox 类型的值 bool chkenabled = ((CheckBox)e.Item.FindControl("chkenabled")).Checked; ///得到主键值 int id = (int)DataGrid1.DataKeys[e.Item.ItemIndex]; } 阅读全文
posted @ 2006-08-26 14:21 wenanry 阅读(273) 评论(0) 推荐(0) 编辑
摘要:ItemDataBound事件的特殊应用 1.生成鼠标前后着色的变化 2.调整列宽 3.如果编辑中省,市,区这样的DropDownList,最好的方法就是做在三连动文件 阅读全文
posted @ 2006-08-26 01:55 wenanry 阅读(276) 评论(1) 推荐(0) 编辑
摘要:DataGrid中一个Bool文件类型处理方法Html文件内容: ... 阅读全文
posted @ 2006-08-26 01:40 wenanry 阅读(326) 评论(0) 推荐(0) 编辑
摘要:Html文件内容: 下面显示的全先和删除文件全选/取消 全选/取消 DataGrid中的反选列 ... 阅读全文
posted @ 2006-08-26 01:26 wenanry 阅读(268) 评论(0) 推荐(0) 编辑
摘要:IIS中的 MIME类型 阅读全文
posted @ 2006-08-25 11:49 wenanry 阅读(1756) 评论(0) 推荐(0) 编辑