摘要: 五种常用存储过程:1,利用select top 和select not in进行分页,具体代码如下:1 createprocedureproc_paged_with_notin--利用selecttopandselectnotin2(3@pageIndexint,--页索引4@pageSizeint--每页记录数5)6as7begin8setnocounton;9declare@timediffdatetime--耗时10declare@sqlnvarchar(500)11select@timediff=Getdate()12 set@sql='selecttop'+str(@pageSiz 阅读全文
posted @ 2010-12-29 21:07 一夜*孤舟 阅读(195) 评论(0) 推荐(0) 编辑
摘要: [WebMethod]public string HelloWorld( string id ,string name ){return id;}然后http://localhost/WebApplication5/Service1.asmx/HelloWorld?id=XXX&name=YYYY在webconfig里面加上 webServices protocols add name="HttpSoap"/ add name="HttpPost"/ add name="HttpGet"/ add name="Documentation"/ /protocols 阅读全文
posted @ 2010-12-29 14:16 一夜*孤舟 阅读(947) 评论(0) 推荐(0) 编辑
摘要: eval函数会评估一个给定的含有JavaScript代码的字符串,并且试图去执行包含在字符串里的表达式或者一系列的合法的JavaScript语句。eval函数将把最后一个表达式或者语句所包含的值或引用作为返回值。举例说明eval评估JavaScript表达式var bar = 'bar';var foobar = eval('"foo" + bar');alert(foobar);eval评估JavaScript语句var bar = 'bar';// if variable bar equals 'bar', foobar is the result of// last executing 阅读全文
posted @ 2010-12-29 13:59 一夜*孤舟 阅读(411) 评论(0) 推荐(1) 编辑
摘要: 说明:执行当前Web请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息:System.InvalidOperationException:因URL意外地以“/GetReceivedInvoices”结束,请求格式无法识别。源错误:执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。已解决,要在webservice的system.web节点下加入[代码] 阅读全文
posted @ 2010-12-29 13:58 一夜*孤舟 阅读(418) 评论(0) 推荐(0) 编辑