摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="Scripts/jquery-1.4.1.js" ty 阅读全文
posted @ 2012-02-22 17:44 zwjyx_ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="Scripts/jquery-1.4.1.js" ty 阅读全文
posted @ 2012-02-22 17:43 zwjyx_ 阅读(151) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="Scripts/jquery-1.4.1.js" ty 阅读全文
posted @ 2012-02-22 17:41 zwjyx_ 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html> <head> <title>登陆</title> <script type="text/javascript"> function test() { var re = /^[a-zA-Z_]\w*$/;//试了n遍总算试出来了,生成后要刷新浏览器 var msg = document.getElementById("1").va 阅读全文
posted @ 2012-02-19 17:57 zwjyx_ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace c练习{ class Program { static void Main(string[] args) { /* string[] str = { "aaa", "ddd", "bbb","ccc" }; Array.Sort(str);//字符串数组排序a~z; ... 阅读全文
posted @ 2012-02-19 17:49 zwjyx_ 阅读(181) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); TextBox.CheckForIllegalCrossThreadCalls = false; } //单线程和多线程 void count() { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i <900000000;i++) { } sw.Stop(); MessageBox.Show(sw.ElapsedMilliseconds.ToString());/ 阅读全文
posted @ 2012-02-19 16:25 zwjyx_ 阅读(245) 评论(0) 推荐(0) 编辑
摘要: OnClientClick是客户端事件方法.一般采用JavaScript来进行处理.也就是直接在IE端运行.一点击就运行.OnClick事件是服务器端事件处理方法,在服务器端,也就是IIS中运行.点击按钮后,执行postback,再运行.如果一个按钮上我们同时有客户端的OnClientClick方法又有OnClick事件处理方法,如何才能按照正常的逻辑运行呢?OnClientClick中我们常用来做一些客户端的检测.当然放在服务器也可以做同样的检测,但这样做的代价是与服务器进行交互,消耗资源。例:test()为一javascript函数. <script type="text/ 阅读全文
posted @ 2012-02-16 13:15 zwjyx_ 阅读(689) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form... 阅读全文
posted @ 2012-02-14 14:42 zwjyx_ 阅读(411) 评论(0) 推荐(0) 编辑