12 2011 档案
摘要:1. 申请合作伙伴ID (PID),Key (PKey)2. 发送请求 https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=100000353&redirect_uri=http://www.wodongni.com/loginReturn.aspx redirect_uri:回传URL client_id: 合作伙伴ID (PID) 返回: string code = Request.QueryString["code"];3. https://graph.qq.com/
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TheStoryOfCat{ class Program { static void Main(string[] args) { Cat cat = new Cat() { Name = "Petal" }; Mouse mouse = new Mouse() { Name = "Jack" }; cat.C...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Net.Sockets;using System.IO;namespace ConsoleAppHttpListener{ /// <summary> /// 监听HTTP 请求 By Rhythmk /// </summary> class Program { static void Main(string[] args) ...
阅读全文
摘要:using Aspose.Words; string tmppath = Server.MapPath("~/TestWord.doc"); Document doc = new Document(tmppath); //载入模板 if (doc.Range.Bookmarks["Rhythmk"] != null) { Bookmark mark = doc.Range.Bookmarks["Rhythmk"]; mark.Text = "张三公司"; } doc....
阅读全文
摘要:---------SQL SERVER -------------------- 获取用户表select id,name from sysobjects where xtype='U'and name<>'dtproperties' order by name---- 获取用户存储过程select id,name from sysobjects where xtype='P'and name<>'dtproperties' order by name--- 获取用户视图select id,name from
阅读全文