自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (2)
  • 收藏
  • 关注

原创 java 构造器的使用

import java.io.*;import java.util.*;/** * *@version 2009/6/5 *@author Rorely */public class ConstructorTest{ public static void main(String[] args){ Employee[] staff=new Employee[3

2009-06-06 14:05:00 384

原创 很多有用的算法--转载自他人

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <object class

2009-03-10 23:39:00 592

原创 母版页

母版页(Master Pages)过去,ASP.NET 没有能力为一个完整的站点应用一致的外观或观感。ASP.NET 2.0 中的 Master Pages 解决了这个问题。master page 是一套应用到其他页面的模版,带有共享的布局和功能性。master page 为内容页面定义了占位符。而结果页面是 master page 和内容页面的组合(合并)。主题(Themes)主题是另一项 AS

2009-03-10 23:36:00 675

原创 创建数据库命令

创建数据库命令为了指定需从数据库取回的记录,我们将创建一个 dbcomm 变量,并为其赋值一个新的 OleDbCommand。这个 OleDbCommand 类用于发出针对数据库表的 SQL 查询:sub Page_Loaddim dbconn,sql,dbcommdbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data s

2009-03-10 23:34:00 1624

原创 维持 ViewState

维持 ViewState (视图状态)当 classic ASP 中的表单被提交时,所有的表单值都会被清空。设想一下,您提交了一张带有大量信息的表单,而服务器返回了一个错误。您将不得不返回表单,然后更正其中的信息。您点击后退按钮,然后会发生什么呢... 所有的表单值都被清空了,而您将不得不重新开始所有的一切。站点不会维持您的 ViewState。当 ASP .NET 中的表单被提交时,表单会随所有

2009-03-10 23:33:00 418

原创 ASP.NET - Web 服务器控件

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <!-- /* Font

2009-03-10 23:31:00 299

原创 ASP.NET - Web 服务器控件

ASP.NET - Web 服务器控件Web 服务器控件是服务器可理解的特殊 ASP.NET 标签。类似 HTML 服务器控件,Web 服务器控件也在服务器上创建,它们同样需要 runat="server" 属性以使其生效。不过,Web 服务器控件没有必要映射任何已存在的 HTML 元素,它们代表更复杂的元素。创建 Web 服务器控件的语法是:在下面的例子中,我们在 .aspx 文

2009-03-10 19:05:00 316

转载 提高C#编程水平不可不读的50个要诀

提高C#编程水平不可不读的50个要诀 开发者在线 Builder.com.cn 更新时间:2008-08-05作者: 来源:开发者在线本文关键词: 要诀 编程 C# 提高C#编程水平的50个要点1.总是用属性 (Property) 来代替可访问的数据成员2.在 readonly 和 const 之间,优先使用 readonly3.在 as

2009-03-09 14:59:00 290

转载 概述C#中的索引器

概述C#中的索引器开发者在线 Builder.com.cn 更新时间:2007-11-14作者:佚名 来源:DotNET中文技术网本文关键词: C# 索引器 C#语言一个最令人感兴趣的地方就是类的索引器(indexer)。简单说来,所谓索引器就是一类特殊的属性,通过它们你就可以像引用数组一样引用自己的类。显然,这一功能在创建集合类的场合特别有用,而

2009-03-09 14:53:00 288

转载 c#中的反射机制

http://www.cnblogs.com/HanN1984/archive/2007/05/08/738499.html 反射的概述:          反射的定义:审查元数据并收集关于它的类型信息的能力。元数据(编译以后的最基本数据单元)就是一大堆的表,当编译程序集或者模块时,编译器会创建一个类定义表,一个字段定义表,和一个方法定义表等。         System.reflec

2009-03-09 14:46:00 466

原创 数学黑洞6174问题

import java.io.*;class Class61742{ static String str=""; final int HOLE=6174; public int[] separatedNum(int num){//拆分一个四位数 int[] a=new int[4]; a[0]=num/1000; a[1]=num%1000/100;

2009-03-04 23:46:00 57445 2

原创 实现接口

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace useInterface{ interface IMovable { float speed{get;} float MaxSpeed { get;

2009-02-22 12:19:00 500

原创 捕获异常

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace useException{    class Program    {        static void Main(string[] args)        {            DevideFunc(1,

2009-02-22 12:00:00 327

原创 定义函数

定义一个字符串连接函数,含有两个参数,返回类型也为字符串.static string contactTwo(string s1,string s2){                return (s1+s2);            }

2009-02-19 21:51:00 276

原创 sql学习

正确的sql语句是:select * from login where userName=rorely错误的是下面的:select * from login where userName="rorely"关键是列名所对应的项应用,而不是"禁用客户端验证(低版本的客户浏览器不支持客户端验证)object[varName]如:Application["greeting"]="欢迎光临

2008-08-30 18:31:00 235

原创 ASP.NET数据库操作实例

 public static bool insertPerson(Person p)    {                try        {            SqlConnection con = DBCon.createConnection();            con.Open();            SqlCommand cmd 

2008-08-30 18:31:00 653

原创 使用Repeater实现分页显示

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;us

2008-08-30 18:28:00 474

原创 Repeater控件的使用

        asp:Repeater ID="Repeater1" runat="server">        ItemTemplate>            %# DataBinder.Eval(Container.DataItem, "EmployeeID")%>            %# DataBinder.Eval(Container.DataItem,

2008-08-30 18:26:00 262

原创 数据绑定--简单属性

    "form1" runat="server">            "Label1" runat="server" Style="z-index: 100; left: 112px; position: absolute;            top: 16px" Text="姓名:" Width="48px">        "txtName" runat

2008-08-29 17:15:00 358

原创 从XML文件中读取数据

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebContro

2008-08-26 11:21:00 377

转载 javaScript DOM方法与属性摘要

1 createElement(element) 创建一个指定标签名创建一个新的元素节点,返回值为指向新建元素节点的引用指针。 eg) var para = document.createElement("p"); document.body.appendChild(para); 2 createTextNode() 创建一个包含着给定文本的新文本节点,返回一个指向

2008-08-25 19:52:00 232

原创 插入数据到数据库

public static bool insertPerson(Person p)    {                try        {            SqlConnection con = DBCon.createConnection();            con.Open();            SqlCommand cmd =

2008-08-25 10:48:00 512

原创 SQL脚本文件创建数据库(简单示例)

create database countPeoplegouse countPeoplegocreate table countPeople(    num int not null)goinsert into countPeople values(0)goselect * from countPeoplego

2008-08-24 10:16:00 1534

原创 VisualStudio2005创建Global.asax文件的一个成功实例

"C#" %>"System.Data" %> "System.Data.SqlClient" %> "System.Web" %> "System.ComponentModel" %> "System.Web.SessionState" %> "server">    void Application_Start(object sender, Ev

2008-08-24 10:10:00 763

原创 ASP.NET学习笔记--自定义验证控件的使用

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebContro

2008-08-22 21:55:00 450

原创 ASP.NET学习笔记--图片上传

protected void Button2_Click(object sender, EventArgs e)    {        string fullPicName=this.File2.PostedFile.FileName;        string picName = fullPicName.Substring(fullPicName.LastIndexOf(

2008-08-22 12:51:00 336

原创 ASP.NET学习笔记--文件上传

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;us

2008-08-22 12:16:00 475 1

原创 数据库创建(SQL语句)--DropdownList&amp;amp;amp;ListBox连动菜单

create database Departmentgouse Departmentgocreate table TDepartment(    depID int primary key,    depName varchar(30) not null)goinsert into TDepartment values(1,教务)

2008-08-21 22:55:00 429

原创 ASP.NET学习笔记--DropdownList&amp;amp;amp;ListBox连动菜单

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebContro

2008-08-21 22:47:00 352

java 大学教程(英文第6版)part2

the second part

2008-07-18

java 大学教程(英文第6版)

java 大学教程(英文第6版)<br>好书,大家可以下着看啊~

2008-07-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除