asp.net页面中文件下载的2种方式
摘要: //Write pdf bytes to outputstream // 在线打开 if (DKFS == "pdf") { Response.ContentType = "application/pdf"; } // 下载 if (DKFS == "octet-stream") { Response.AddHeader("Content-Disposition", string.Format("...
阅读全文
gridview 的添加删除等技巧 全部按名称取值
摘要: 情况1:使用dataSource绑定的时候使用一个页面变量,GridViewFlow_RowDeleting先执行,紧接着SqlDataSourceFlow_Deletingprivate int rowIndex; protected void GridViewFlow_RowDeleting(object sender, GridViewDeleteEventArgs e) { rowInde...
阅读全文