博客园 - VictorShan
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=36964
2011-02-12T07:01:41Z
VictorShan
https://www.cnblogs.com/VictorShan/
feed.cnblogs.com
https://www.cnblogs.com/VictorShan/archive/2011/02/12/1952497.html
SQL代码问题 求解 - VictorShan
select convert(varchar(20),year(min(Vn_Date)))+'-'+convert(varchar(20),month(min(Vn_Date))) from Vendition#Note where Vn_CiClientID=1 and Vn_BiBrandID=1select min(convert(varchar(20),year(Vn_Date))+'-'+convert(varchar(20),month(Vn_Date))) from Vendition#Note where Vn_CiClientID=1 and
2011-02-12T07:02:00Z
2011-02-12T07:02:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】select convert(varchar(20),year(min(Vn_Date)))+'-'+convert(varchar(20),month(min(Vn_Date))) from Vendition#Note where Vn_CiClientID=1 and Vn_BiBrandID=1select min(convert(varchar(20),year(Vn_Date))+'-'+convert(varchar(20),month(Vn_Date))) from Vendition#Note where Vn_CiClientID=1 and <a href="https://www.cnblogs.com/VictorShan/archive/2011/02/12/1952497.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/08/16/1800336.html
C# 动态生成控件 - VictorShan
//窗体加载的构造方法public AA(){ //定义一个List存放动态生成的控件(这里以Label为例) List<Label> lab=new List<Label>(); for(int i=0;i<变量;i++) { lab.Insert(i,new Label()); lab[i].Text=变量; lab[i].].Locat...
2010-08-15T16:48:00Z
2010-08-15T16:48:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】//窗体加载的构造方法public AA(){ //定义一个List存放动态生成的控件(这里以Label为例) List<Label> lab=new List<Label>(); for(int i=0;i<变量;i++) { lab.Insert(i,new Label()); lab[i].Text=变量; lab[i].].Locat... <a href="https://www.cnblogs.com/VictorShan/archive/2010/08/16/1800336.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/08/16/1800333.html
C# 从DataTable中取值 - VictorShan
//定义一个返回DataTable 的方法private DataTable AA(){ SqlConnection con=new SqlConnection("server=localhost;database=aa;uid=sa;pwd=sa;) con.Open(); DataTable dt=new DataTable(); SqlDataAdapter da=new SqlDa...
2010-08-15T16:34:00Z
2010-08-15T16:34:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】//定义一个返回DataTable 的方法private DataTable AA(){ SqlConnection con=new SqlConnection("server=localhost;database=aa;uid=sa;pwd=sa;) con.Open(); DataTable dt=new DataTable(); SqlDataAdapter da=new SqlDa... <a href="https://www.cnblogs.com/VictorShan/archive/2010/08/16/1800333.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/04/13/1711455.html
C# 动态连接库之数据库执行 - VictorShan
namespace ToolsLoad{ namespace SQL { public class Execute { #region 代码中用到的变量 Link link = null; SqlConnection CON; SqlCommand COM; SqlDataReader SDR = null; SqlDataAdapter SDA; DataSet DS = null; boolb...
2010-04-13T14:49:00Z
2010-04-13T14:49:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】namespace ToolsLoad{ namespace SQL { public class Execute { #region 代码中用到的变量 Link link = null; SqlConnection CON; SqlCommand COM; SqlDataReader SDR = null; SqlDataAdapter SDA; DataSet DS = null; boolb... <a href="https://www.cnblogs.com/VictorShan/archive/2010/04/13/1711455.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/04/13/1711440.html
C# 动态连接库之数据库连接 - VictorShan
namespace ToolsLoad{ namespace SQL { /// <summary> /// 数据库连接 /// </summary> public class Link { #region 代码中用到的变量 string LINK = ""; SqlConnection CON; #endregion #region 传入连接字符串 /// <sum...
2010-04-13T14:30:00Z
2010-04-13T14:30:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】namespace ToolsLoad{ namespace SQL { /// <summary> /// 数据库连接 /// </summary> public class Link { #region 代码中用到的变量 string LINK = ""; SqlConnection CON; #endregion #region 传入连接字符串 /// <sum... <a href="https://www.cnblogs.com/VictorShan/archive/2010/04/13/1711440.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/04/13/1710968.html
C# 连接池技术 - VictorShan
class PoolLink { string sqlStr=""; SqlConnection con; /// <summary> /// C# 数据库连接池 /// </summary> /// <param name="serverLink">服务连接地址</param> /// <param name="dbName">...
2010-04-13T03:51:00Z
2010-04-13T03:51:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】class PoolLink { string sqlStr=""; SqlConnection con; /// <summary> /// C# 数据库连接池 /// </summary> /// <param name="serverLink">服务连接地址</param> /// <param name="dbName">... <a href="https://www.cnblogs.com/VictorShan/archive/2010/04/13/1710968.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2010/01/13/1646430.html
C# 数据表绑定comboBox - VictorShan
comboBox1.DataSource = new DataSet().Tables[0]; //绑定数据表 comboBox1.DisplayMember = "数据库字段名"; //绑定字段
2010-01-13T05:09:00Z
2010-01-13T05:09:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】comboBox1.DataSource = new DataSet().Tables[0]; //绑定数据表 comboBox1.DisplayMember = "数据库字段名"; //绑定字段 <a href="https://www.cnblogs.com/VictorShan/archive/2010/01/13/1646430.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/09/26/1574339.html
电脑启动故障 - VictorShan
故障描述:电脑早上第一次开机显示器没反应,而且也没听到检过内存的声音,按下机箱上的重启键之后,启动正常,进入系统后在重启也没问题,但关机后在隔段时间,该问题又会出现。找了一上午也没找出问题所在,后来在网上查了一下问题解决了,下面跟大家一起分享一下具体的解决步骤。解决步骤:网上提示1.主板上电容有坏的。2.电源电容有坏的。首先仔细检查了一下主板的电容,没发现坏的,这时就想先换下电源看看。换了电源之后...
2009-09-26T01:22:00Z
2009-09-26T01:22:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】故障描述:电脑早上第一次开机显示器没反应,而且也没听到检过内存的声音,按下机箱上的重启键之后,启动正常,进入系统后在重启也没问题,但关机后在隔段时间,该问题又会出现。找了一上午也没找出问题所在,后来在网上查了一下问题解决了,下面跟大家一起分享一下具体的解决步骤。解决步骤:网上提示1.主板上电容有坏的。2.电源电容有坏的。首先仔细检查了一下主板的电容,没发现坏的,这时就想先换下电源看看。换了电源之后... <a href="https://www.cnblogs.com/VictorShan/archive/2009/09/26/1574339.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/08/06/1540766.html
.NET内存管理的最佳实践(转载的,与大家分享) - VictorShan
http://developer.51cto.com/ 2009-07-28 09:54 黄永兵 译 51CTO.com 我要评论(0)摘要:.NET应用程序中常会处理服务器上大量的内存,此时避免内存浪费是开发中需要注意的问题。本文详细介绍了.NET内存管理的最佳实践,从代码编写到线程的使用,能够显著减少内存的浪费。标签:.NET内存管理Oracle帮您准确洞察各个物流环节【51CTO精选译文】我...
2009-08-06T14:20:00Z
2009-08-06T14:20:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】http://developer.51cto.com/ 2009-07-28 09:54 黄永兵 译 51CTO.com 我要评论(0)摘要:.NET应用程序中常会处理服务器上大量的内存,此时避免内存浪费是开发中需要注意的问题。本文详细介绍了.NET内存管理的最佳实践,从代码编写到线程的使用,能够显著减少内存的浪费。标签:.NET内存管理Oracle帮您准确洞察各个物流环节【51CTO精选译文】我... <a href="https://www.cnblogs.com/VictorShan/archive/2009/08/06/1540766.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/04/11/1433923.html
服务器控件验证文本框为空时不回传服务器的简单方法 - VictorShan
首先添加一个新项,这里添加的网页文件名是Default.aspx在Default.aspx里放入两个TextBox,设ID分别为TextBox1和TextBox2.设TextBox2的TextMode属性为Password放入一个Button控件,设ID为Button1,Text属性为"Login"在Ddfault.aspx网页中加入下面代码<script language="javascr...
2009-04-11T14:09:00Z
2009-04-11T14:09:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】首先添加一个新项,这里添加的网页文件名是Default.aspx在Default.aspx里放入两个TextBox,设ID分别为TextBox1和TextBox2.设TextBox2的TextMode属性为Password放入一个Button控件,设ID为Button1,Text属性为"Login"在Ddfault.aspx网页中加入下面代码<script language="javascr... <a href="https://www.cnblogs.com/VictorShan/archive/2009/04/11/1433923.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/03/24/1420940.html
将DataGridView中的数据导出到EXCEL表中 - VictorShan
//首先要添加引用 COM组件 Microsoft Excel 12.0 Object Libraryusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windo...
2009-03-24T14:44:00Z
2009-03-24T14:44:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】//首先要添加引用 COM组件 Microsoft Excel 12.0 Object Libraryusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windo... <a href="https://www.cnblogs.com/VictorShan/archive/2009/03/24/1420940.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/03/24/1420928.html
汉字及区位码之间的转换 - VictorShan
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Test{ public partial class HanZi...
2009-03-24T14:33:00Z
2009-03-24T14:33:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Test{ public partial class HanZi... <a href="https://www.cnblogs.com/VictorShan/archive/2009/03/24/1420928.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/02/12/1389122.html
C#代码,启动和杀掉进程 - VictorShan
using System.Diagnostics; //有Process类//方法一//this.process1.StartInfo = new ProcessStartInfo(@"c:\windows\system32\calc.exe");//this.process1.Start();//方法二this.process1.StartInfo.FileName = @"c:\windows...
2009-02-12T07:16:00Z
2009-02-12T07:16:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】using System.Diagnostics; //有Process类//方法一//this.process1.StartInfo = new ProcessStartInfo(@"c:\windows\system32\calc.exe");//this.process1.Start();//方法二this.process1.StartInfo.FileName = @"c:\windows... <a href="https://www.cnblogs.com/VictorShan/archive/2009/02/12/1389122.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/01/06/1369938.html
俱乐部网址 - VictorShan
fpt://guest:guest@221.204.249.208:4321
2009-01-05T17:08:00Z
2009-01-05T17:08:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】fpt://guest:guest@221.204.249.208:4321 <a href="https://www.cnblogs.com/VictorShan/archive/2009/01/06/1369938.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2009/01/02/1367019.html
ASP函数大全 - VictorShan
Abs(number) 返回绝对值。 Array(arglist) 创建一个数组。 Asc(string) 返回字符串第一个字符的ANSI码。 Atn(number) 返回反正弦值。 CBool (expression) 转换成Boolean数据类型变量。 CByte (expression) 转换成Byte数据类型变量。 CCur (expression) 转换成Currency数据类型变量。 ...
2009-01-02T08:53:00Z
2009-01-02T08:53:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】Abs(number) 返回绝对值。 Array(arglist) 创建一个数组。 Asc(string) 返回字符串第一个字符的ANSI码。 Atn(number) 返回反正弦值。 CBool (expression) 转换成Boolean数据类型变量。 CByte (expression) 转换成Byte数据类型变量。 CCur (expression) 转换成Currency数据类型变量。 ... <a href="https://www.cnblogs.com/VictorShan/archive/2009/01/02/1367019.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2008/12/14/1354786.html
Javascript匹配IP地址 - VictorShan
利用正则表达式匹配IP地址,并将IP地址转换成对应数值的Javascript程序: functionIP2V(ip) { re=/(\d+)\.(\d+)\.(\d+)\.(\d+)/g//匹配IP地址的正则表达式 if(re.test(ip)) { returnRegExp.$1*Math.pow(255,3))+RegExp.$2*Math.pow(255,2))+RegE...
2008-12-14T09:00:00Z
2008-12-14T09:00:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】利用正则表达式匹配IP地址,并将IP地址转换成对应数值的Javascript程序: functionIP2V(ip) { re=/(\d+)\.(\d+)\.(\d+)\.(\d+)/g//匹配IP地址的正则表达式 if(re.test(ip)) { returnRegExp.$1*Math.pow(255,3))+RegExp.$2*Math.pow(255,2))+RegE... <a href="https://www.cnblogs.com/VictorShan/archive/2008/12/14/1354786.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2008/12/14/1354785.html
C#正则表达式备忘 - VictorShan
只能输入n位的数字:"^\d{n}$"。 只能输入至少n位的数字:"^\d{n,}$"。 只能输入m~n位的数字:。"^\d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。 只能输入非零的正整...
2008-12-14T08:58:00Z
2008-12-14T08:58:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】只能输入n位的数字:"^\d{n}$"。 只能输入至少n位的数字:"^\d{n,}$"。 只能输入m~n位的数字:。"^\d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。 只能输入非零的正整... <a href="https://www.cnblogs.com/VictorShan/archive/2008/12/14/1354785.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2008/10/26/1319954.html
JAVA如何取配置文件的相对路径 - VictorShan
有个问题一直没解决,今天终于在大家的帮助下解决了,为了以后,在这里记一下,顺便跟大家分享一下,要是有更好的解决方法,希望能给我留言,谢谢! 这个问题就是在JSP中如何取得配置文件所在的路径 我在WebRoot下有个file文件夹,在该文件夹下有个a.properties的配置文件,用过很多方法,如:request.getContextPa...
2008-10-26T13:05:00Z
2008-10-26T13:05:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】有个问题一直没解决,今天终于在大家的帮助下解决了,为了以后,在这里记一下,顺便跟大家分享一下,要是有更好的解决方法,希望能给我留言,谢谢! 这个问题就是在JSP中如何取得配置文件所在的路径 我在WebRoot下有个file文件夹,在该文件夹下有个a.properties的配置文件,用过很多方法,如:request.getContextPa... <a href="https://www.cnblogs.com/VictorShan/archive/2008/10/26/1319954.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2008/10/22/1316341.html
快忘记了的C#索引器 - VictorShan
//索引器类 class MyArrayList { object[] MyOBJ; //1.定义object类型的数组 int i = 0; public MyArrayList(int i) //2.规定数组长度 { MyOBJ = new o...
2008-10-21T16:02:00Z
2008-10-21T16:02:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】//索引器类 class MyArrayList { object[] MyOBJ; //1.定义object类型的数组 int i = 0; public MyArrayList(int i) //2.规定数组长度 { MyOBJ = new o... <a href="https://www.cnblogs.com/VictorShan/archive/2008/10/22/1316341.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/VictorShan/archive/2008/10/16/1312824.html
标准标签库应用及从文件读取消息的备忘 - VictorShan
//properties文件中的格式 title=标题 1=内容1 2=内容2 3=内容3 4=内容.... //处理中文乱码的类 public class CodeSwitching { static public String Transition(String str) throws UnsupportedEncodingException { String code ; b...
2008-10-16T09:27:00Z
2008-10-16T09:27:00Z
VictorShan
https://www.cnblogs.com/VictorShan/
【摘要】//properties文件中的格式 title=标题 1=内容1 2=内容2 3=内容3 4=内容.... //处理中文乱码的类 public class CodeSwitching { static public String Transition(String str) throws UnsupportedEncodingException { String code ; b... <a href="https://www.cnblogs.com/VictorShan/archive/2008/10/16/1312824.html" target="_blank">阅读全文</a>