counter
counter
上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: Javascript中的函数“在定义它们的作用域里运行,而不是在执行它们的作用域里运行”。var tt = 'aa';function test(){alert(tt);var tt = 'dd';alert(tt);}test();执行结果:undefined和ddtest函数内部的“var tt='dd'”将会致使“var tt='aa'”在test函数被调用时完全被隐藏。而且,tt是在第一个alert语句之后定义,所以在调用到第一个alert时,tt是还没有被赋值 的。这样说可能会清楚一点,即,在定义test函数时,当定义第 阅读全文
posted @ 2012-07-06 15:41 bfy 阅读(176) 评论(0) 推荐(0) 编辑
摘要: var DropDownList1 = document.getElementById("DropDownList控件ID"); //获取DropDownList控件的引用var DropDownList1_Index = DropDownList1.selectedIndex; //获取选择项的索引var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value; //获取选择项的值var DropDownList1_Text = DropDownList1.options[DropDow 阅读全文
posted @ 2012-07-05 14:52 bfy 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1.privateDictionary<long,List<long>>mergeIdDict=newDictionary<long,List<long>>();RepeaterrptTemp=(Repeater)e.Item.FindControl("rptClass");foreach(vardictinmergeIdDict){if(dict.Key==info.Id){ classIdList.Add(info.Id); classIdList.AddRange(dict.Value); break;}}List< 阅读全文
posted @ 2012-07-04 17:44 bfy 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 转载http://www.cnblogs.com/zjwei55/archive/2011/08/31/2161415.html灵活的运用数据绑定操作 绑定到简单属性:<%#UserName%> 绑定到集合:<asp:ListBox id="ListBox1" datasource='<%# myArray%>' runat="server"> 绑定到表达式:<%#(class1.property1.ToString() + "," + class1.property2.ToS 阅读全文
posted @ 2012-07-04 16:07 bfy 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1.document节点没有父元素 例如: <div><span>dfd</span><div> document.getElementsByTagName('span')[0].parentNode;//表示选中DIV2.<script type="text/javascript">function tdclick(){if(event.srcElement.tagName.toLowerCase()=='td')alert("行:"+(event.srcEle 阅读全文
posted @ 2012-06-20 11:50 bfy 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.VS10X CodeMap2.Productivity Power Tools3.调试技巧:引用:http://kb.cnblogs.com/page/92158/http://www.cnblogs.com/xupng/archive/2011/06/10/2077647.html4.SQL Prompt5.1codeSmithXmindaptana studio 阅读全文
posted @ 2012-06-19 11:16 bfy 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1.前台页面,根据后台函数取值<asp:TemplateField> <HeaderTemplate> 所属学校</HeaderTemplate> <ItemTemplate> <%#GetSchoolName(Convert.ToInt32(Eval("SchoolId").ToString()))%... 阅读全文
posted @ 2012-05-30 17:52 bfy 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一:1.IIS出现503错误。查看%Systemroot%\System32\LogFiles\HTTPERR\httperr1.log提示AppOffline2.IIS下应用程序池启动即可。二:按下键盘上的 Insert 键,光标就会变回来。 阅读全文
posted @ 2012-05-14 14:02 bfy 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 在 C# 中,int 其实就是 System.Int32,即都是32位的。其次,(int) 和 Convert.ToInt32 是两个不同的概念,前者是类型转换,而后者则是内容转换,它们并不总是等效的。我们很清楚 C# 提供类型检查,你不能把一个 string 强制转换成 int,隐式转换就更加不可能,例如如下的代码就行不通了:string text = "1412";int id = (int)text;因为 string 和 int 是两个完全不同并且互不兼容的类型。说到这里,你可能会问什么才算是兼容的呢?其实,能够使用 (int) 进行强类型转换的只能是数值类型了,例 阅读全文
posted @ 2012-05-10 16:01 bfy 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.由于原表的记录数过多,从中查询数据虽然可以通过建立分区和索引,但原表要进行经常性插入数据,所以,现在要从原表定时读取符合条件的数据到新记录表中,用的时候直接从新记录表中读取数据,加快查询速度。2.通过两个角度来进行定时读取,一是每一个月的月末晚上十一点五十九,读取这一个月的数据,二是每一个周的周日晚上十一点五十九,读取该周的数据。3.主要是通过作业计划,然后配合存储过程完成。4.第一个角度(存储过程):CREATE PROCEDURE 存储过程名ASBEGIN SET NOCOUNT ON; INSERT INTO 新表( ProcessedInput, InputSpellin... 阅读全文
posted @ 2012-05-08 17:27 bfy 阅读(251) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页