![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.NET B/S
文章平均质量分 81
warrior21st
这个作者很懒,什么都没留下…
展开
-
C# DataTable转json,DataSet转json
#region dataTable转换成Json格式 /// /// dataTable转换成Json格式 /// /// /// public string DataTable2Json(DataTable dt) {原创 2014-09-04 16:02:04 · 1029 阅读 · 0 评论 -
ASP.NET 前端AJAX请求数据及后台ashx返回json给前端。
前端html代码:原创 2014-09-04 14:52:46 · 1542 阅读 · 0 评论 -
C# 客户端向服务器 POST/GET函数
using System;using System.Collections.Generic;using System.IO;using System.Net;using System.Text;namespace InfoBank{ public class NetHelper { Exlog log = new Exlog()转载 2014-09-08 22:10:32 · 455 阅读 · 0 评论 -
ASP.NET 截取本服务器访问地址。
public void Tourl(string urlstr) { string[] searchurl = HttpContext.Current.Request.Url.AbsoluteUri.Split('/'); string url = "http:/"; for (int i = 1; i原创 2014-09-10 15:45:06 · 318 阅读 · 0 评论 -
C# ASP.NET GridView导出EXCEL。
using System.IO;using System.Web.UI; public void GridViewToExcel(Control ctrl) { try { HttpContext.Current.Response.Charset = "GB2312";转载 2014-09-10 16:15:25 · 632 阅读 · 0 评论 -
ASP.NET程序写错误log的函数。
C# CODE:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;namespace InfoBank{ public class Exlog { public void Write原创 2014-09-10 10:01:18 · 331 阅读 · 0 评论