原创 用dataset來填充tree

1,<iewc:TreeView id=TreeView1 style="Z-INDEX: 101; LEFT: 152px; POSITION: absolute; TOP: 168px" TreeNodeSrc="categories

原创 在js和cs中的排序

1,javascript 中的排序<script >  function KeyValue(serialkey,value)  {  this.serialkey = serialkey;  this.value = value;  } 

原创 網上取數據的一個例子

private void Page_Load(object sender, System.EventArgs e)  {        string url="http://localhost/webUserWindowExample/W

原创 一個自定義的可以分頁,排序,擴展顯示grid控件

第一次寫,忘記註解,對不住. using System;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;using Syste

原创 有關windows服務的創建,控制

1,創建,  打開vs.net , 新建一個項目,類型爲windows service2,安裝,  installutil service1.exe  installutil /u service1.exe 刪除3,控制 ServiceC

原创 一個改變最後選中datagrid的Color的javascript

var Supplier_LastSelectRowId = "";  function Supplier_selectRow(sender) { if(Supplier_LastSelectRowId != "") { var las

原创 popup的兩種方法

<script> var pop; function window.onload() { document.all .eMeng.style.display='none'; window.setTim

原创 導出excel的兩種方法

1,直接保存成excel page_load()  { Response.Write(this.GetExcelHTML());   Response.ContentType="Application/vnd.ms-excel";   R

原创 findtext

 function findGrid(sss) { var table=document.all.DataGrid1; var len=table.r

原创 一些js例子

function __doPostBack(eventTarget, eventArgument) { var theform; theform =

原创 關於view的觸發器的例子.

/*create table UserTable(    UserId       uniqueidentifier NOT NULL ROWGUIDCOL, -- 唯一標識    Name          nvarchar(60) 

原创 客戶端調用webservice

//注意 在1.1的machine.config,默認webservice去除了post,get方法 machine.config中找到把去掉的加上 1,webservice[WebMethod]  p

原创 Design Pattern 14-bridge

/* * 將抽象和行爲劃分開來,各自獨立,但能動態的結合。 *  * 例如,一杯咖啡爲例,子類實現類爲四個:中杯加奶、大杯加奶、 中杯不加奶、大杯不加奶。 但是,我們注意到:上面四個子類中有概念重疊,可從另外一個角度進行考慮,這四個類實際

原创 Design Pattern 8-singleton

using System; namespace Pattern{ /// <summary> /// Summary description for Class1. /// </summary> public class singleto

原创 Design Pattern 15-visitor

/*Visitor訪問者模式定義作用於某個對象羣中各個對象的操作. 它可以使你在不改變這些對象本身的情況下,定義作用於這些對象的新操作. 在Java中,Visitor模式實際上是分離了collection結構中的元素和對這些元素進行操作的