谁有类似电子邮件里通讯录导入导出的代码? 谁有类似电子邮件里通讯录导入导出的代码,最好是c#的 ,支持xls,txt格式 ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if( this.EspeciallyInfo_Grid.Items.Count == 0 ) { throw new Exception("没有数据不能导出!"); } string filename="c:\\myexcel"; //将datagrid内容导入到客户端excel文件 datagrid to excel int ss=EspeciallyInfo_Grid.Items.Count; this.Response.AddHeader("Content-Disposition", "attachment; filename="+filename+".xls"); this.Response.ContentType = "application/vnd.ms-excel"; this.EnableViewState= true; System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw); EspeciallyInfo_Grid.RenderControl(hw); this.Response.Write(tw.ToString()); Response.End(); sql语句某列的值包含某列的问题 网站通过iis不能登录 freetextbox:如何修改它的js文件使其初始化时就插入一个表格, 递归怎么实现排序 怎样引发datafrid模板列里的控件的事件 cdo发送邮件的问题 求助:SQL问题 关于弹出窗执行后点击确定后关闭子页面 谁能提供一个asp.net下jmail收发信的实例(vb实现) datagrid小问题,高手请指教!!!在线等待!!! 请高手指教,怎么像拍拍网那样点一个链接启动本地的应用程序,并传一些参数? 一个关于在发送的email中现实图片的问题(急,在线等百分酬谢)
{
throw new Exception("没有数据不能导出!");
} string filename="c:\\myexcel";
//将datagrid内容导入到客户端excel文件 datagrid to excel
int ss=EspeciallyInfo_Grid.Items.Count;
this.Response.AddHeader("Content-Disposition", "attachment; filename="+filename+".xls");
this.Response.ContentType = "application/vnd.ms-excel";
this.EnableViewState= true;
System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
EspeciallyInfo_Grid.RenderControl(hw);
this.Response.Write(tw.ToString());
Response.End();