![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Asp.net
文章平均质量分 65
Shelly89
在奋斗的年龄,不要选择了安逸
展开
-
网站发布后, ReportViewer 控件不能正常显示
异常信息如图显示:转载 2014-08-12 13:41:32 · 3922 阅读 · 0 评论 -
.net 导出excel 数字文本
public static void DataTable2Excel(System.Data.DataTable dtData) { #region zusi //System.Web.UI.WebControls.DataGrid dgExport = null; ////当前对话原创 2015-03-01 14:36:48 · 1736 阅读 · 0 评论 -
ASP.NET 获取IP和MAC地址
/****************获取服务器IP和MAC地址*********************************/ string strHostName = System.Net.Dns.GetHostName();// 计算机名 string clientIPAddress = System.Net.Dns.GetHostAddresses(strHo原创 2015-12-15 09:56:58 · 744 阅读 · 0 评论 -
文件上传 汇总
第一种:html 前台html: 注意点: 1)enctype="multipart/form-data" 必须要写 2)input 控件必须要写name,不然Request.Files[0]原创 2015-12-30 16:54:05 · 670 阅读 · 0 评论 -
asp.net 页面导出EXCEL
protected void Button1_Click(object sender, EventArgs e) { System.Data.DataTable table = QTFactory.BL.rptReport.RptGetUserAnwser(hidID.Value); DataTable2Excel(table)原创 2015-12-18 15:23:42 · 354 阅读 · 0 评论 -
禁止浏览器前进和后退 清除缓存
禁止前进后退:> 清除缓存:原创 2015-12-18 16:26:34 · 726 阅读 · 1 评论 -
JSON 反序列
需要下载使用:Newtonsoft.Json.Net20.dll string json=@"[{"sku":"6717651000196","gsku":"6717651000672"},{"sku":"6717651000199","gsku":""},{"sku":"6717651000216","gsku":""},{"sku":"6717651000233","gsku":"原创 2016-01-12 15:34:15 · 363 阅读 · 0 评论 -
TransactionScope 问题记录解决方法
(一)无法加载 DLL“oramts.dll”: 找不到指定的模块 原文地址:http://blog.csdn.net/chutao/article/details/6146778 Oramts.dll 文件公开登记 Oracle 连接所涉及到在通过 Microsoft 分布式事务处理协调器 (MSDTC) 启动的事务中的公共 API。 在事务处理环境中运行时, System....转载 2018-02-26 12:04:43 · 1181 阅读 · 0 评论 -
文件上传浏览器限制设置
需要在config文件设置httpRuntime 和 maxAllowedContentLength <system.web> <httpRuntime targetFramework="4.6.1" maxRequestLength="1048576000" appRequestQueueLimit="100" useFullyQualifiedRedirectU...原创 2018-12-06 11:16:06 · 2339 阅读 · 0 评论