摘要: http://apps.hi.baidu.com/share/detail/14693085[代码] 阅读全文
posted @ 2010-10-12 16:40 Aleax 阅读(714) 评论(0) 推荐(0) 编辑
摘要: webService中要实现ajax调用,则要加这句代码: // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。 [System.Web.Script.Services.ScriptService]代码下载代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://ww... 阅读全文
posted @ 2010-08-27 16:12 Aleax 阅读(573) 评论(0) 推荐(0) 编辑
摘要: //取得选中的radio的值alert($("input:radio[name=radItem][checked]").val());//判断是否选中$("#XXX").is(":checked") //返加true false;$("#XXX").attr("checked")//checked,undefine//取得选中的Select的值alert($("#ctl00_ContentPlaceHolder1_ddlSEOUrl option:selected").val 阅读全文
posted @ 2010-06-11 16:35 Aleax 阅读(302) 评论(0) 推荐(1) 编辑
摘要: 1.静态构造函数的执行 静态构造函数用于初始化任何静态数据,或用于执行仅需执行一次的特定操作。在创建第一个实例或引用任何静态成员之前,将自动调用静态构造函数。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;publicclassA{publicstaticintX;staticA(){X=B.Y+1;}}publicclassB{publicstaticintY=A.X+1;staticB(){}}publiccl 阅读全文
posted @ 2010-04-08 14:02 Aleax 阅读(974) 评论(0) 推荐(0) 编辑
摘要: http://topic.csdn.net/u/20100201/16/D6E5CAB1-5B22-43C6-9F6B-E2700EB40FF5.htmlAttribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:R... 阅读全文
posted @ 2010-02-20 17:42 Aleax 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privateDataTableSelectTop(intTop,DataTableoDT){if(oDT.Rows.Count<Top)returnoDT;DataTableNewTable=... 阅读全文
posted @ 2009-12-16 13:51 Aleax 阅读(2317) 评论(0) 推荐(1) 编辑
摘要: 行列转化与PIVOT、UNPIVOT运算符使用http://blog.csdn.net/canhui87/archive/2009/09/20/4574260.aspxPIVOT用于将列值旋转为列名(即行转列),在SQL Server 2000可以用聚合函数配合CASE语句实现PIVOT 的一般语法是:PIVOT (聚合函数(列) FOR 列 in (…) )AS P完整语法:table_sourcePIVOT(聚合函数(value_column)FOR pivot_columnIN(<column_list>))UNPIVOT用于将列明转为列值(即列转行),在SQL Server 阅读全文
posted @ 2009-12-15 16:27 Aleax 阅读(1868) 评论(1) 推荐(0) 编辑
摘要: 摘要: 如果,你想在一台数据库服务器上,查询另一个台数据服务器的数据该如何做呢?如果,你想在同一台数据服务器上,在不同的数据库之间查询数据,又该怎么办呢?1.Synonym2.openquery3.Linked Servers Server Object-->Linked Servers--> serverType 选择 SQL Server, 在 Security 中 选择"Be m... 阅读全文
posted @ 2009-11-09 16:51 Aleax 阅读(1964) 评论(0) 推荐(1) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CreatetableEmp_Announcement_Account(AnnouncementIDIntnotNull,AccountNumIntNotNull,SubAccountIntNotNull)AlterTableEmp_Announcement_AccountAddConstraintPK_Emp_Announcement_AccountPRIMARYKEY(Announcemen 阅读全文
posted @ 2009-11-04 16:50 Aleax 阅读(799) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-04 16:45 Aleax 阅读(491) 评论(0) 推荐(0) 编辑