Repeater嵌套绑定Repeater
摘要:Repeater嵌套Repeater的结构:一般写过的都能看懂吧cs代码:private void RpTypeBind() {//GetQuestionTypeAndCount() 返回一个datatable this.rptypelist.DataSource = LiftQuestionCtr.GetQuestionTypeAndCount(); this.rptypelist.DataBind(); } protected void rptypeli...
阅读全文
posted @
2012-07-19 17:57
slc
阅读(183)
推荐(0)
NET实现功能代码收集。(上传图片)
摘要:1.上传图片前台:form中加入 enctype="multipart/form-data"。一般处理事件中 context.Request.ContentType = "text/html";案例: HttpFileCollection files = HttpContext.Current.Request.Files; if (files.Count > 0) { for (int i = 0; i < files.Count; i++) { Htt...
阅读全文
posted @
2012-07-17 10:46
slc
阅读(218)
推荐(0)
NET导出数据问题收集(excel,word,dbf)
摘要:Excel1.导出excel出现数字过长导致科学计数法出现E字:解决方案:使用vnd.ms-excel.numberformat:@将数字转换为文本 案例: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int count = GridView1.Columns.Count; for (int i ...
阅读全文
posted @
2012-07-17 10:09
slc
阅读(236)
推荐(0)