摘要:
using System; class Program { public class Cat { private string name; public Cat(string name) { this.name = name; } public delegate void CatCallEventHandler(); //猫叫的委托 public event... 阅读全文
摘要:
父类与子类间的隐藏与重写例子(改写一题面试题)(1)隐藏当分别位于父类和子类的两个方法完全一样时,调用哪个方法由对象变量的类型决定。using System; public class A { public A() { Console.WriteLine("A"); } public virtual void Fun() { Console.WriteLine("A.Fun()"); } } public class B : A { public B() { Console.WriteLine("B"); } public new v 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Script.Serialization;using System.Data;/************************************************** * 版权所有: * 文 件 名: JSONHelper.cs * 文件描述: * 类型说明: JSONHelper JSON帮助类 * 授权声明: * 本程序为自由软件; * 您可依据自由软件基金会所发表的GPL v3授权 阅读全文
摘要:
<html><head><title></title><script src="jquery-1.3.2.min.js" type="text/javascript"></script><script src="jquery.autocomplete.js" type="text/javascript"></script><link rel="Stylesheet" type="tex 阅读全文
摘要:
test.html<html><head><title>表单验证</title><mce:script src="jquery-1.3.2.min.js" mce_src="jquery-1.3.2.min.js" type="text/javascript"></mce:script><mce:script type="text/javascript"><!--$(function(){ $("#username& 阅读全文
摘要:
string path1 = HttpContext.Current.Server.MapPath("~/install/1.sql"); string path2 = HttpContext.Current.Server.MapPath("~/install/2.sql"); string[] strpath ={ path1, path2 }; for (int i = 0; i < strpath.Length; i++) { ... 阅读全文
摘要:
/// <summary> /// 修改配置文件中的连接字符串 /// </summary> /// <param name="server">服务器名称</param> /// <param name="userid">用户ID</param> /// <param name="password">密码</param> /// <param name="database">数据库名称</param&g 阅读全文
摘要:
<asp:Repeater ID="rptUserList" runat="server" OnItemCommand="rptUserList_ItemCommand"> <ItemTemplate> <tr> <td> <asp:CheckBox ID="chkDel" runat="server" /> </td> <td style="word-break: break-all" align 阅读全文
摘要:
protected void Button1_Click(object sender, EventArgs e) { /*=============测试通过===============*/OleDbConnection con = newOleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;DataSource=C:/Inetpub/wwwroot/DotNetArticle/App_Data/DotNetArticle.mdb"); con.Open(); OleDbCommand cmd = new OleDbComman 阅读全文
摘要:
http://topic.csdn.net/u/20090718/14/77b76f31-b24b-48af-b9b1-5a88b65f2a1f.html?seed=2113482969&r=58464969#r_58464969<?xml version="1.0" encoding="utf-8" ?> <backup> <item num="1" time ="2009-02-24 0:00:00"></item> <item num=" 阅读全文