页首Html代码

摘要: declare @cnum varchar(20)declare @sql nvarchar(1000)select @sql=('select @a=cNumber+1 from VoucherHistory where CardNumber='''+@CardNumber+'''')exec sp_executesql @sql,N'@a int output',@cnum outputprint @cnum 阅读全文
posted @ 2013-08-24 13:41 binsite 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: --创建存储过程IF EXISTS (SELECT * FROM sysobjects WHERE name='GetSplitString' AND xtype='p') DROP PROCEDURE dbo.GetSplitStringGOCREATE PROCEDURE dbo.GetSplitString @strID nvarchar(max) --以逗号隔开的字符串 ,@tableName nvarchar(50) output --临时表ASBEGIN declare @totalLength int declare @length in... 阅读全文
posted @ 2013-08-14 21:19 binsite 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: --简单的跨服务器查询语句select * from opendatasource('SQLOLEDB', 'Data Source=192.168.0.1;User ID=sa;Password=123').db_bingle.dbo.users--跨服务器插入数据IF EXISTS (select * from sys.servers WHERE name = 'ufserver')Exec sp_droplinkedsrvlogin 'ufserver',Null exec sp_dropserver @server= 阅读全文
posted @ 2013-07-18 20:12 binsite 阅读(251) 评论(0) 推荐(0) 编辑
摘要: public class ExcelHelper { private static object missing = Type.Missing; #region ================导出================= /// /// 导出到Excel /// /// public static void ExportToExcel(System.Windows.Forms.DataGridView dgv) { ExportT... 阅读全文
posted @ 2013-06-26 14:48 binsite 阅读(355) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type ="text/css" > .main{ background-color:Silver; width :200px; height :100px; margin-left:40%; margin-top :200px; text-align :center;} </style> 阅读全文
posted @ 2013-05-21 23:03 binsite 阅读(230) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type ="text/css" > .main{ background-color:Silver; width :100%; height :200px;} </style> <script src="js/ui/jquery-1.7.1.min.js" type 阅读全文
posted @ 2013-05-21 22:18 binsite 阅读(526) 评论(0) 推荐(1) 编辑
摘要: 问题如图:使用组合键:Ctrl+E ,S 阅读全文
posted @ 2013-05-14 22:12 binsite 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 安装发布:1.添加/新建项目/其他项目类型/安装和部署/windows?安装项目;web?web安装项目2.应用程序文件夹/添加/项目输出(全选)3.主输出文件创建快捷方式(可以创建多个,分别添加到应用程序文件夹,用户程序菜单,用户桌面);配置图标:属性icon3.反安装(卸载):复制C:/windows/system32/msiexec.exe后创建快捷方式(可以多个,修改名称:uninstall.exe)-属性:Argument:/x{ProductCode};配置图标:属性icon卸载操作:/xProductCode(:guid)4.修改Author:作者productName:项目名称 阅读全文
posted @ 2013-05-11 16:07 binsite 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 利用dns类和WMI规范获取IP及MAC地址在C#编程中,要获取主机名和主机IP地址,是比较容易的.它提供的Dns类,可以轻松的取得主机名和IP地址.示例:string strHostName = Dns.GetHostName(); //得到本机的主机名IPHostEntry ipEntry = Dns.GetHostByName(strHostName); //取得本机IPstring strAddr = ipEntry.AddressList[0].ToString(); //假设本地主机为单网卡在这段代码中使用了两个类,一个是Dns类,另一个为IPHostEntry类,二者都存在于.. 阅读全文
posted @ 2013-05-11 15:43 binsite 阅读(790) 评论(0) 推荐(0) 编辑
摘要: Winform取屏幕大小2011/3/4 16:36:58 - tanlixiaoWinform(C#)获取屏幕大小,包括全屏大小,除任务栏大小和全屏大小L M S当前的屏幕除任务栏外的工作域大小 this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width; this.Height = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;当前的屏幕包括任务栏的工作域大小this.Width=System.Windows.Form... 阅读全文
posted @ 2013-05-11 15:42 binsite 阅读(232) 评论(0) 推荐(0) 编辑

页脚Html代码