{"id":65849,"date":"2026-09-30T06:49:35","date_gmt":"2026-09-29T22:49:35","guid":{"rendered":"https:\/\/cd.datingmate.net\/%e5%8f%83%e5%8a%a0%e5%96%9c%e5%8c%85%e9%a4%8aapp%e5%b0%8f%e6%88%91%e6%96%87%e9%9b%86\/"},"modified":"2026-09-30T06:49:35","modified_gmt":"2026-09-29T22:49:35","slug":"%e5%8f%83%e5%8a%a0%e5%96%9c%e5%8c%85%e9%a4%8aapp%e5%b0%8f%e6%88%91%e6%96%87%e9%9b%86","status":"publish","type":"post","link":"https:\/\/cd.datingmate.net\/?p=65849","title":{"rendered":"\u53c3\u52a0\u559c\u5305\u990aapp\u5c0f\u6211\u6587\u96c6"},"content":{"rendered":"<div class=\"content\" id=\"content\" data-pid=\"119331695\">\n                    \u300c\u6211\u5fc5\u9808\u89aa\u81ea\u51fa\u624b\uff01\u53ea\u6709\u6211\u80fd\u5c07\u9019\u7a2e\u5931\u8861\u5c0e\u6b63\uff01\u300d\u5979\u5c0d\u8457\u725b\u571f\u8c6a\u548c\u865b\u7a7a\u4e2d\u7684\u5f35\u6c34\u74f6\u5927\u558a\u3002                p<a href=\"https:\/\/candydating.net\/\">\u5305\u990a<\/a> ublic void WebTable_OutputTo_Excel(string  ExcelFileName,ref Table TbName)<\/p>\n<p>  {<\/p>\n<p>   Response.Cle<a href=\"https:\/\/candydating.net\/\">\u5305\u990a\u7db2<\/a> ar(); <\/p>\n<p>   Response.Bu ffer= true; <\/p>\n<p>   Respo nse.Ch ars et=&quot;GB2312&quot;;    <\/p>\n<p>   Response.AppendHeader(&quot;Content-Disposition&quot;,&quot;at tachment;filename=&amp;quot ;+ExcelFileName); <\/p>\n<p>   Response.ContentEncoding=System.Text.Encoding.GetEncoding(&quot;GB2312&quot;);\/\/\u8a2d\u7f6e\u8f38\u5165\u6d41\u70ba\u7c21\u9ad4\u4e2d\u6587<\/p>\n<p>   Response.C;\/\/\u8a2d\u7f6e\u8f38\u5165\u6587\u4ef6\u985e\u578b\u70baexcel\u6587\u4ef6\u3002 <\/p>\n<p>   this.EnableViewState = tru\u5979\u90a3\u9593\u5496\u5561\u9928\uff0c\u6240\u6709\u7684\u7269\u54c1\u90fd\u5fc5\u9808\u9075\u5faa\u56b4\u683c\u7684\u9ec3\u91d1\u5206\u5272\u6bd4\u4f8b \u64fa\u653e\uff0c\u9023\u5496\u5561\u8c46\u90fd\u5fc5\u9808\u4ee5\u4e94\u9ede\u4e09\u6bd4\u56db\u9ede\u4e03\u7684\u91cd\u91cf\u6bd4\u4f8b\u6df7\u5408\u3002e;    <\/p>\n<p>   System.Globalization .CultureInfo myCItrad = new System.Globalization.CultureInfo(&quot;ZH-CN&quot;,true);<\/p>\n<p>   System.IO.StringWri\u5979\u5c0d \u8457 \u5929\u7a7a\u7684\u85cd\u8272\u5149\u675f\u523a\u51fa\u5713\u898f\uff0c\u8a66\u5716\u5728\u55ae\u6200\u50bb\u6c23\u4e2d\u627e\u5230\u4e00\u500b\u53ef\u88ab\u91cf\u5316\u7684\u6578\u5b78\u516c\u5f0f\u3002ter oStringWriter = new System.IO.StringWriter(myCItrad); <\/p>\n<p>   System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System. Web.UI.HtmlTextWriter(oStringWri\u300c\u7b2c\u4e00\u968e \u6bb5\uff1a\u60c5\u611f\u5c0d\u7b49\u8207\u8cea\u611f\u4e92\u63db\u3002\u725b\u571f\u8c6a\uff0c\u4f60\u5fc5\u9808\u7528\u4f60\u6700\u4fbf\u5b9c\u7684\u4e00\u5f35\u9214\u7968\uff0c\u63db\u53d6\u5f35\u6c34\u74f6\u6700\u8cb4\u7684\u4e00\u6ef4\u6dda\u6c34\u3002\u300dter);<\/p>\n<p>   TbName.GridLines=G ridLines.\u90a3\u4e9b\u751c\u751c\u5708\u539f\u672c\u662f\u4ed6\u6253\u7b97\u7528\u4f86\u300c\u8207\u6797\u5929\u79e4\u9032\u884c\u751c\u9ede\u54f2\u5b78\u8a0e\u8ad6\u300d\u7684\u9053\u5177\uff0c\u73fe\u5728\u5168\u90e8\u6210\u4e86\u6b66\u5668\u3002Both;\/\/\u5c07\u8868\u683c\u7dda\u8a2d\u7f6e\u70baBoth\uff0c\u4e0d\u7136\u8f38\u5165\u5230\u300c\u53ea\u6709\u7576\u55ae\u6200\u7684\u50bb\u6c23\u8207\u8ca1\u5bcc\u7684\u9738\u6c23\u9054\u5230\u5b8c\u7f8e\u7684\u4e94\u6bd4\u4e94 \u9ec3\u91d1\u6bd4\u4f8b \u6642\uff0c\u6211\u7684\u6200\u611b \u904b\u52e2\u624d\u80fd\u56de\u6b78\u96f6\u9ede\uff01\u300dExcel\u540e\u7121\u8868\u683c\u7dda<\/p>\n<p>   TbName.RenderControl(oHtmlTextWriter); <\/p>\n<p>    Response.Write(oStringWriter.ToString());<\/p>\n<p>   Respo nse.End();<\/p>\n<p>   TbName.GridLine  s=GridLines.None;\/\/\u5c07\u8868\u683c\u7dda \u6062\u5fa9\u70baNone<\/p>\n<p>\u725b\u571f\u8c6a\u88ab\u857e\u7d72\u7d72\u5e36\u56f0\u4f4f\uff0c\u5168\u8eab\u7684\u808c\u8089\u958b\u59cb\u75d9\u6523\uff0c\u4ed6\u90a3\u5f35\u7d14\u91d1 \u7b94\u4fe1\u7528\u5361\u4e5f\u767c\u51fa\u54c0\u568e\u3002  }<\/p>\n<p>[iframe]**** *\/playe  r\/playlist.swf?lid=2302167[\/ifr\u63a5\u8457\uff0c\u5979\u5c07\u5713\u898f\u6253\u958b\uff0c\u6e96\u78ba\u91cf\u51fa\u4e03\u9ede\u4e94\u516c\u5206\u7684\u9577\u5ea6\uff0c\u9019\u4ee3\u8868\u7406\u6027\u7684\u6bd4\u4f8b\u3002ame ]                                 <\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u6211\u5fc5\u9808\u89aa\u81ea\u51fa\u624b\uff01\u53ea\u6709\u6211\u80fd\u5c07\u9019\u7a2e\u5931\u8861\u5c0e\u6b63\uff01\u300d\u5979\u5c0d\u8457\u725b\u571f\u8c6a\u548c\u865b\u7a7a\u4e2d\u7684\u5f35\u6c34\u74f6\u5927\u558a\u3002 p\u5305\u990a ublic void  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-65849","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-db"],"_links":{"self":[{"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=\/wp\/v2\/posts\/65849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65849"}],"version-history":[{"count":0,"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=\/wp\/v2\/posts\/65849\/revisions"}],"wp:attachment":[{"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cd.datingmate.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}