摘要:
啥都不说,直接上码...///<summary>///绑定树视图///</summary>///<paramname="dt">数据源</param>privatevoidBindTreeView(DataTabledt){ddlCategorys.Items.Clear();//清除数据ddlCategorys.Items.Add(newListItem("全部","0"));if(dt!=null&&dt.Rows.Count>0){DataRow[]nodeL 阅读全文
摘要:
1、usingSystem;publicclassSingleton{privatestaticSingletoninstance;privateSingleton(){}publicstaticSingletonInstance{get{if(instance==null){instance=newSingleton();}returninstance;}}}2、publicsealedclassSingleton{privatestaticreadonlySingletoninstance=newSingleton();privateSingleton(){}publicstaticSin 阅读全文
摘要:
摘自:http://blog.csdn.net/amandag/article/details/2677316(出于对作者的尊重,将出处写在最闪眼的地...)分页加排序的存储过程:view plain--得到总记录数ifexists(select1fromsys.objectswherename='GetProductsCount'andtype='P')dropprocGetProductsCountgoCREATEPROCEDUREGetProductsCountasselectcount(*)fromproductsgo--分页加排序ifexists(se 阅读全文
摘要:
Page.Response.Write("<script>var response;</script>");Page.RegisterStartupScript("RegisterStartupScript","<script>var RegisterStartupScript;</script>");Page.RegisterClientScriptBlock("RegisterClientScriptBlock","<script>var R 阅读全文
摘要:
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 阅读全文
摘要:
C:\Windows\system32>wsdl http://mytest.gmcc.net/......./test.asmx -out: c:\outtest.cs 阅读全文
摘要:
我们先看一个关于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 阅读全文
摘要:
--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 阅读全文
摘要:
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 ''所在的表及字段:[' 阅读全文
摘要:
前台代码:<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/ 阅读全文