• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






二娃子

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2012年3月19日

Listl转datatable
摘要: using System;using System.Collections.Generic;using System.Data.SqlClient;using System.Data;using System.Collections;using System.Reflection;using System.Configuration;using System.IO;using System.Web.Script.Serialization;using System.Runtime.Serialization.Json;using System.Text;using System.Linq;pu 阅读全文
posted @ 2012-03-19 23:33 二娃子 阅读(375) 评论(0) 推荐(0)
 

2012年3月1日

C#将Json字符串反序列化成List对象类集合
摘要: using System.IO;using System.Web.Script.Serialization;using System.Runtime.Serialization.Json;public static List<T> JSONStringToList<T>(this string JsonStr) { JavaScriptSerializer Serializer = new JavaScriptSerializer(); List<T> objs = Serializer.Deserialize<List<T>>(Js 阅读全文
posted @ 2012-03-01 22:23 二娃子 阅读(302) 评论(0) 推荐(0)
 

2012年2月18日

jquery与Ajax
摘要: 1,首先导入jquery.js文件不用我说了吧!2,看代码: $(function() { $.ajax({ type: "post", url: "Handler.ashx",//这里请求的是一个一般处理程序,也可以是页面! async: false, error: function() { alert("数据库连接失败!"); }, success: function(response) { var data = eval("(" + response + ")");//这里接收到发送过来的 阅读全文
posted @ 2012-02-18 10:26 二娃子 阅读(124) 评论(0) 推荐(0)
 
.net 发送QQ邮件
摘要: 前台table代码:<table align="center" border="0" cellpadding="0" cellspacing="0" width="776"> <tr> <td> <table align="center" border="0" cellpadding="4" cellspacing="1" width="600" bgco 阅读全文
posted @ 2012-02-18 10:17 二娃子 阅读(338) 评论(0) 推荐(1)
 
.net操作xml小结
摘要: 一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingleNode("/root");//获取节点下所有直接子节点XmlNodeList childlist=root.ChildNodes;//判断该节点下是否有子节 阅读全文
posted @ 2012-02-18 09:57 二娃子 阅读(176) 评论(0) 推荐(0)