摘要: CREATE PROCEDURE [dbo].[GetRootID](@nodeID varchar(36))ASBEGINSET NOCOUNT ON; DECLARE @rootID varchar(36), @currentID varchar(36) SELECT @rootID = ParentOrgID, @currentID = @nodeID FROM Organization WHERE OrgID = @nodeID; WHILE @rootID !='0' BEGIN SELECT @rootID = ParentOrgID, @currentID = O 阅读全文
posted @ 2011-11-29 15:00 Jack.G 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: CREATE function [dbo].[GetChildOrgID](@OrgID varchar(36)) returns @t table(OrgID varchar(36),ParentOrgID varchar(36),Level int) as begin declare @i int set @i = 1 insert into @t select @OrgID,@OrgID,0 --当前级,本级,如果不要的话可以注释掉或再加个参数来选择操作 insert into @t select OrgID,ParentOrgID,@i from SM_Organization... 阅读全文
posted @ 2011-11-29 14:57 Jack.G 阅读(1784) 评论(0) 推荐(0) 编辑
摘要: window.parent.JS方法名但是此方法只能在同域下面,跨域不行。 阅读全文
posted @ 2011-11-21 11:34 Jack.G 阅读(825) 评论(0) 推荐(0) 编辑
摘要: 今天将TEXTBOX 里面的数据直接绑定到了Label 空间中,中文可以正常换行,但是英文就不能正常换行了。最后花了1个多小时解决了这个换行问题。1:设置tb的样式:style="word-break:break-all;word-wrap: break-word"2:设置label的宽度:width="900px" 额,也可以是百分比的。 阅读全文
posted @ 2011-11-02 16:39 Jack.G 阅读(890) 评论(0) 推荐(2) 编辑
摘要: <asp:Repeater ID="rptTest" runat="server"> <HeaderTemplate> <table> </HeaderTemplate> <ItemTemplate> <asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible='<%# (Container.ItemIndex + 1) % 7 ==1 %>'> <tr& 阅读全文
posted @ 2011-10-26 18:41 Jack.G 阅读(439) 评论(0) 推荐(0) 编辑
摘要: C#代码与javaScript函数的相互调用:1.如何在JavaScript访问C#函数?2.如何在JavaScript访问C#变量?3.如何在C#中访问JavaScript的已有变量?4.如何在C#中访问JavaScript函数?问题1答案如下:javaScript函数中执行C#代码中的函数:方法一:页面和页面类相结合1、函数声明为public 后台代码(把public改成protected也可以) public string ss() { return("a"); } 2、在html里用<%=ss()%>可以调用//是C#中后台的函数名称 前台脚本 < 阅读全文
posted @ 2011-10-21 12:13 Jack.G 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' orone of its dependencies. The system cannot find the file specifiedLine 15: <form id="form1" runat="server">Line 16: <asp:ScriptManager runat="server" ID="smScript 阅读全文
posted @ 2011-10-18 17:36 Jack.G 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: sqlcmd -S JACK_PC -E -i D:\Insert.sql需要修改:JACK_PC 服务器名D:\Insert.sql SQL脚本路径 阅读全文
posted @ 2011-09-20 15:02 Jack.G 阅读(909) 评论(0) 推荐(0) 编辑
摘要: private DataTable UnitTable() { DataTable newtable = GetDtA().Clone(); object[] obj = new object[newtable.Columns.Count]; for (int i = 0; i < GetDtA().Rows.Count; i++) { GetDtA().Rows[i].ItemArray.CopyTo(obj, 0); newtable.Rows.Add(obj); } for (int i = 0; i < GetDtB().Rows.Count; i++) { GetDtB( 阅读全文
posted @ 2011-09-15 11:21 Jack.G 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Datatabledb=null;DataTabledt=ds.Tables[0];////两个datatable进行合并db=dt.Copy();DataRow[]foundRows=dt.Select();for(inti=0;i<foundRows.Length;i++){db.ImportRow(foundRows[i]);}//两个结构一样的DT合并 DataTableDataTable1=newDataTable();DataTableDataTable2=newDataTable();DataTablenewDataTable=DataTable1.Clone();obje 阅读全文
posted @ 2011-09-13 17:19 Jack.G 阅读(1636) 评论(0) 推荐(0) 编辑