[摘]IList及泛型集合类转换DataTable
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///将集合类转换成DataTable///</summary>///<paramname="list">集合</param>/...
阅读全文
(摘)C++和C#相互调用COM组件的方法简介
摘要:1、在VS2005中,C#编写DLL并使用C++调用2、在VS2005中C#编写的COM组件,使用VC6.0调用3、在VC6.0中编写COM组件,使用VS2005 C#调用4、在VC6.0中编写COM组件,使用VC6.0调用其中每个类型都写了两个程序,一个为COM组件程序,一个为C++和C#相互调用COM组件调用程序程序实现:1、在VS2005中,C#编写DLL并使用C++调用(1)C#编写DLL...
阅读全文
关于构造函数及参数执行顺序说明(c#)【转自junmail】
摘要:三个类:父类,子类,测试类父类:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1usingSystem;23namespaceTestInherit4{5publicclassFather6{7publicintfather_a=111;8pub...
阅读全文
关于C# 中object sender与EventArgs e
摘要:http://www.cnblogs.com/8888/archive/2009/04/15/1436784.htmlhttp://blog.csdn.net/sinoant/archive/2009/09/18/4567839.aspxhttp://www.diybl.com/course/4_webprogram/asp.net/netjs/2007113/82466.html
阅读全文
(摘)C#获取存储过程的Return返回值和Output输出参数值
摘要:一、获取Return返回值[代码][代码]二、获取Output输出参数值[代码][代码]
阅读全文
在CS类文件里向调用页面输出Javascript代码的3种方法
摘要:方法1,使用Response.Write,这种方法会把JS代码写在页面的最顶部(< html>的前面):System.Web.HttpContext.Current.Response.Write("< script language=javascript>alert('JS代码');< /script>");方法2,使用RegisterStartupScript...
阅读全文