- 博客(31)
- 资源 (28)
- 收藏
- 关注
原创 关于 未在本地计算机上注册“VFPOLEDB.1” 的解决方案
在很古老的时候猿们会使用 Microsoft Visual FoxPro(即Dbf)的数据库,用于对数据的存储,和Access类似,而且两者可以互转,可以把它当成数据文件,如Access数据(MDB)、Excel数据(XLS)、文本数据(TXT)、Xbase数据(DBF)等格式。 可以使用OleDbConnection、OdbcConnection 等,去读取Dbf文件。内容
2014-03-21 11:42:23
13319
转载 c#对xml的创建、查询
假设一个xml文件内容如下:?xml version="1.0" encoding="UTF-8"?> Persons xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.xxx.com/XxxSystem"> Person id=
2013-02-16 15:46:21
648
转载 Js 跨域
一、一些概念①传统Ajax:交互的数据格式——自定义字符串或XML描述; 跨域——通过服务器端代理解决。②如今最优方案:使用JSON格式来传输数据,使用JSONP来跨域。③JSON:一种数据交换格式。基于纯文本、被原生JS支持。 格式:两种数据类型描述符:大括号{ }、方括号[ ]。分隔符逗号、映射符冒号、定义符双引好。④JSONP:
2013-02-16 15:20:19
667
转载 在Win7 下IIS(7.5)发布 ASP.NET MVC 4.0 404.8问题
操作系统 Win 7 旗舰版 开发工具 VS2012 使用技术 IIS7.5 + MVC4.0 在IIS发布后会遇到 Found 404的问题此时我们需要检查一下IIS配置1.在应用池添加一个项目专用应用程序名称 1.点击你在IIS管理中发布的web名称 2.点击 处理程序映射 3.点击 添加通配符脚本映射 如图保存 即可在本
2012-10-16 16:08:39
14345
转载 C#工厂设计模式 示范
C#工厂设计模式Eg: /// /// 工厂(应用层真正可操作的方法) /// interface IAbstractFactory { /// /// 姓名 /// /// string getName(); ///
2012-07-24 15:23:20
880
转载 C#中CodeDomProvider代码编译的简单实现
internal class Compiler { internal void Product() { string resource = string.Empty; resource = GetResource(); CodeDomProvider provider = n
2012-07-24 15:22:21
1101
转载 C#中泛型接口、泛型类、泛型方法的小列
/// /// 泛型类和泛型方法 /// public class A { public T Fn() where T : List, new() //类型T约束为只能通过new关键字,如果取消new(),则方法里面不能用T t=new T() 如果换成where T:global::System.Data的话 那么说明泛型
2012-07-24 14:44:51
812
转载 HighCharts报表之条形统计图
机构推送资源数据分析(有效性) $(function () { var chart; $(document).ready(function () { chart = new Highcharts.Chart({
2012-07-24 14:42:25
1508
转载 NET/C# 字段索引的使用简列
static void Main(string[] args) { #region List List data = new List(); for (int k = 1; k { data.Add(k.ToString
2012-07-24 14:40:20
704
转载 MSMQ(微软消息队列)简单使用-支持离线提交数据(供阅)
#region MessageQueue消息队列(发送/接收) //第一条数据 MessageQueue sendQueue = new MessageQueue(".\\Private$\\MSMQDemo"); Message sendsg = new Message(); sendsg.B
2012-07-24 14:38:35
1157
转载 ajax简单解析xml文件(复杂的解析可以通过后台程序实现,如一般处理程序)
var html="";$.ajax({ url:"person.xml", datatype:"xml", success:function(data){ $(data).find("Person").each( function(){ html+=$(this).attr("Name")+"";
2012-07-24 14:33:48
809
转载 SQL 的异常信息的捕获
在SQL Server 数据库中捕获异常信息的语句:begintrydeclare @i intset @i=0if @i/0=0 print '结果为0'end trybegincatch print error_message()// 输出异常信息end catch
2012-07-24 14:31:53
972
翻译 C# 读取XML中的数据信息内容的方法
internal class ReadXML { /// /// 获取XML文件person节点信息 /// /// xml文件路径 /// internal object Get(string filePath) { XmlDoc
2012-07-24 14:30:19
1142
原创 NET检测文件和文件夹是否存在的方法
/// /// 检测文件是否存在 /// /// private bool isFileExist(string Filename) { if (File.Exists("../FileTemp" + Filename)) {
2012-05-08 12:29:21
646
转载 正则表达式 ———— 大全
正则表达式及限制字数"^\d+$" //非负整数(正整数 + 0) ^(?:0|[1-9]\d{0,2})(\.\d)?$(判断数字小于1000,小数位数只能有1位,不是负数的正则表达式)"^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数
2012-03-30 16:04:39
4969
转载 SQL 执行插入1000万条数据操作 几十秒内!
alter database test set recovery BULK_LOGGED goinsert into aaa select id=a.id+b.id+c.id+d.id +e.id +f.id+g.id from( select id=0 union all select 1 union all select id=2 u
2012-03-15 14:38:42
2552
转载 百万数据查询测试 只需1秒--Sql语句效率测试 经典
p4: 2.4内存: 1 Gos: windows 2003数据库: ms sql server 2000目的: 查询性能测试,比较两种查询的性能SQL查询效率 step by step-- setp 1.-- 建表create table t_userinfo(userid int identity(1,1) primary key noncl
2012-03-15 11:30:02
819
转载 简单的XML在ASP.NET中增删改应用
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; usin
2012-03-14 10:59:32
436
转载 C# 构造函数 例子
//构造函数,去掉this class Person { public String name; public String sex; public int age; public double weight; public Person() {
2012-03-14 10:49:11
522
转载 C# 抽象类的使用
abstract class myFirst { int value_myFirst; public myFirst(int f) { value_myFirst = f; } //抽象方法没有方法体,以分号结尾 public abstract void
2012-03-14 10:48:01
588
转载 C# 方法参数
class Program { static void Swap(ref int x, ref int y) { int temp = x; x = y; y = temp; } static void Swap(int x, int y)
2012-03-14 10:47:07
370
转载 C#事件与委托的关系【使用】
class Program { static void Main(string[] args) { MyText myText = new MyText(); //将事件处理添加到事件的调用列表中(既事件布线) myText.Changed += new MyText.Cha
2012-03-14 10:45:23
723
转载 C# out的使用实例
//out的使用 class Program { static void ResoluteName(string fullname, out String firstname, out string lastname) { string[] strArray = fullname.Split(new char[] { '
2012-03-14 10:44:04
3347
转载 C#数组
//C#数组演示class Program { //数组参数需要修饰符params static int Sum(params int[] args) { int s = 0; foreach (int n in args) {
2012-03-14 10:42:51
421
转载 C#继承关系
//继承关系的代码演示class Person { public string name; public string sex; public int age; public double weight; public Person() { name
2012-03-14 10:41:33
1198
转载 C#的值传递实例
//C#的一个值传递的代码演示class Element { public int Number = 10; } class Program { static void Change(Element e) { Element t = new Element();
2012-03-14 10:38:55
640
转载 C# 方法的覆盖 例子注解
//方法的覆盖 class Parent { public void F() { Console.WriteLine("Parent.F"); } public virtual void G() { Console.WriteLine("
2012-03-14 10:37:25
620
转载 C# 覆盖与override 的使用区别 示例
class myFirst { int value_myFirst; public myFirst(int f) { value_myFirst = f; } public void f1() { System.Console.W
2012-03-14 10:36:10
446
转载 C#一个简单的委托实例
public class BuyIt { public static void Buy1() { Console.WriteLine("买卖一!"); } public static void Buy2() { Console.WriteLine(
2012-03-14 10:31:36
731
转载 程序员也敢吃10元的盒饭
又是一个阳光灿烂的中午,看了一上午的报纸,茶水也顺带喝了不少,肚子早已经咕咕作响了,今天中午吃点什么了,貌似楼下的新开张的盒饭还不错,于是我来到楼下准备买上一盒。 菜色还不错,价格有6元,8元,10元,12元,20元的,像哥这样的精英管理人才,怎么着也的吃最高级的才配合身份,就在我准备购买时,一个响亮的声音响起, "老板,给我一份10元的盒饭", 顺势撇了一眼,一个小伙子,眉开眼笑的靠近盒饭铺
2012-03-13 17:42:38
661
转载 实现长文章分页显示功能
//写一个类public class SplictPage{ public static string bind(string content, string Id) { string thisnr = ""; string thispage = ""; string[] temp = content.Trim().
2012-03-12 11:10:30
871
Net +Flex在线文档预览(支持Word PPT Xls Pdf等)
2013-01-21
ASP.NET 网站开发典型模块与实例精讲 源码
2012-03-21
天气信息C#
2012-03-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人