摘要: 啥都不说,直接上码...///<summary>///绑定树视图///</summary>///<paramname="dt">数据源</param>privatevoidBindTreeView(DataTabledt){ddlCategorys.Items.Clear();//清除数据ddlCategorys.Items.Add(newListItem("全部","0"));if(dt!=null&&dt.Rows.Count>0){DataRow[]nodeL 阅读全文
posted @ 2012-08-29 11:23 itor 阅读(320) 评论(2) 推荐(1) 编辑
摘要: 1、usingSystem;publicclassSingleton{privatestaticSingletoninstance;privateSingleton(){}publicstaticSingletonInstance{get{if(instance==null){instance=newSingleton();}returninstance;}}}2、publicsealedclassSingleton{privatestaticreadonlySingletoninstance=newSingleton();privateSingleton(){}publicstaticSin 阅读全文
posted @ 2011-12-19 23:35 itor 阅读(188) 评论(0) 推荐(1) 编辑
摘要: 摘自:http://blog.csdn.net/amandag/article/details/2677316(出于对作者的尊重,将出处写在最闪眼的地...)分页加排序的存储过程:view plain--得到总记录数ifexists(select1fromsys.objectswherename='GetProductsCount'andtype='P')dropprocGetProductsCountgoCREATEPROCEDUREGetProductsCountasselectcount(*)fromproductsgo--分页加排序ifexists(se 阅读全文
posted @ 2011-12-18 00:55 itor 阅读(304) 评论(0) 推荐(1) 编辑
摘要: Page.Response.Write("<script>var response;</script>");Page.RegisterStartupScript("RegisterStartupScript","<script>var RegisterStartupScript;</script>");Page.RegisterClientScriptBlock("RegisterClientScriptBlock","<script>var R 阅读全文
posted @ 2011-10-21 14:41 itor 阅读(459) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Data;usingSXT.Data;usingSystem.Net.Mail;usingSystem.ComponentModel;namespaceSXT.MSS.Winservice{///<summary>///邮件操作类///</summary>publicclassSmtpMailService{#region属性//SMTP服务器protectedSmtpClientMySmtp 阅读全文
posted @ 2011-10-19 19:52 itor 阅读(175) 评论(0) 推荐(1) 编辑
摘要: C:\Windows\system32>wsdl http://mytest.gmcc.net/......./test.asmx -out: c:\outtest.cs 阅读全文
posted @ 2011-10-19 17:09 itor 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 我们先看一个关于Javascript利用循环绑定事件的例子:例如:一个不确定长度的列表,在鼠标经过某一条的时候改变背景。﹤!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﹥Untitled Page﹤/title﹥﹤/head﹥﹤bod 阅读全文
posted @ 2011-10-12 18:31 itor 阅读(516) 评论(0) 推荐(0) 编辑
摘要: --Transact-SQL语句——列表输出SETNOCOUNTONDECLARE@dbVARCHAR(20)--获取当前数据库SET@db=db_name()DBCCUPDATEUSAGE(@db)WITHNO_INFOMSGSGOCREATETABLE#tblSpace(数据表名称varchar(250)null,记录笔数intnull,保留空间varchar(15)null,数据使用空间varchar(15)null,索引使用空间varchar(15)null,未使用空间varchar(15)null)DECLARE@tblnamevarchar(250)DECLAREcurTblsCU 阅读全文
posted @ 2011-07-11 12:33 itor 阅读(719) 评论(1) 推荐(0) 编辑
摘要: USE [Discuz]GODECLARE @what varchar(800)SET @what='标签' --要搜索的字符串DECLARE @sql varchar(8000)DECLARE TableCursor CURSOR LOCAL FORSELECT sql='IF EXISTS ( SELECT 1 FROM ['+o.name+'] WHERE ['+c.name+'] LIKE ''%'+@what+'%'' ) PRINT ''所在的表及字段:[' 阅读全文
posted @ 2011-06-22 10:23 itor 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: 前台代码:<headrunat="server"><title>AutoComplete</title><scriptsrc="js/jquery-1.3.2.js"type="text/javascript"></script><scriptsrc="js/jquery.autocomplete.js"type="text/javascript"></script><scriptsrc="js/ 阅读全文
posted @ 2011-05-05 14:03 itor 阅读(554) 评论(0) 推荐(0) 编辑