上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
  2012年8月1日
摘要: Insert是T-sql中常用语句,Insert INTO table(field1,field2,...) values(value1,value2,...)这种形式的在应用程序开发中必不可少。但我们在开发、测试过程中,经常会遇到需要表复制的情况,如将一个table1的数据的部分字段复制到table2中,或者将整个table1复制到table2中,这时候我们就要使用SELECT INTO 和 INSERT INTO SELECT 表复制语句了。 1.INSERT INTO SELECT语句语句形式为:Insert into Table2(field1,field2,...) select v 阅读全文
posted @ 2012-08-01 11:36 cw_volcano 阅读(143) 评论(0) 推荐(0) 编辑
  2012年7月31日
摘要: Eager loadingOne feature in ORM that's really useful and helps optimization is eager loading. The idea is quite simple, you define what objects in a graph you want to load for a single query and the ORM will make sure that the full graph is loaded after the query. Really efficient for graphs wit 阅读全文
posted @ 2012-07-31 13:52 cw_volcano 阅读(1165) 评论(0) 推荐(0) 编辑
  2012年7月24日
摘要: 这是最近发现的一个问题,我用AJAX请求P页面,然后根据返回值来确定下一步的逻辑,结果发现Response.End语句居然引发了“正在中止线程”异常,导致影响了判断返回结果的逻辑。P页面代码类似如下结构:try {//读取数据库if (true)//这里对读出来的值进行业务逻辑判断 { Response.Write("状态1"); Response.End(); }else {//读取数据库if (true)//这里对读出来的值进行业务逻辑判断 ... 阅读全文
posted @ 2012-07-24 18:27 cw_volcano 阅读(749) 评论(0) 推荐(0) 编辑
  2012年7月18日
摘要: 1、window.parent 是iframe页面调用父页面对象举例: a.htmlA如果我们需要在b.html中要对a.html中的username文本框赋值(就如很多上传功能,上传功能页在ifrmae中,上传成功后把上传后的路径放入父页面的文本框中),我们应该在b.html中写:var _parentWin = window.parent;_parentWin.form1.username.value = "xxxx";Z-Blog的文章编辑页面上传功能就是这么实现的。2、window.opener 是 window.open 打开的子页面调用父页面对象opener:对 阅读全文
posted @ 2012-07-18 14:27 cw_volcano 阅读(173) 评论(0) 推荐(0) 编辑
  2012年7月16日
摘要: 1、animated:String or Number设置展开子节点时的显示速度,有 slow、normal、fast 或者指定速度值,与 jQuery 的 hide(show)中的 speed 参数相似。2、persist: String记忆折叠的方式。location:页面刷新不保留折叠状态;cookie:页面刷新保留折叠状态。3、collapsed: boolean Default:false, all expanded初始化时的折叠状态。true,初始化为收缩节点状态;false,为全部节点展开。4、unique: boolean Default:false展开同级节点的唯一性。t.. 阅读全文
posted @ 2012-07-16 17:44 cw_volcano 阅读(899) 评论(0) 推荐(0) 编辑
  2012年7月15日
摘要: 项目中遇到这个问题,网上找了一大片都没有找到,最后自己解决,总结下,其实是通过改变节点的样式来达到目的的。//展开节点 var container = $("#browser").find("li[title='" + folderName + "']"); container.attr("class", "closed collapsable"); container.find("div").attr("class", "hit 阅读全文
posted @ 2012-07-15 14:47 cw_volcano 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: 1.一、AjaxJson.aspx 处理业务数据,产生JSon数据,供JqueryRequest.aspx调用,代码如下:代码如下:protected void Page_Load(object sender, EventArgs e){string u = Request["UserName"];string p = Request["Password"];string output = string.Format("'UserName':'{0}','Password':'{1} 阅读全文
posted @ 2012-07-15 14:44 cw_volcano 阅读(441) 评论(0) 推荐(0) 编辑
  2012年7月7日
摘要: ShowModalDialog函数的功能:打开一个子窗口,并且可与父窗口相互传递数据,它与window.open的最大区别就在于由ShowModalDialog打开子窗口后,父窗口将不能操作。使用方法:vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])参数说明:sURL必选参数,类型:字符串。用来指定对话框要显示的文档的URL。vArguments可选参数,类型:变体。用来向对话框传递参数。传递的参数类型不限,包括数组等。对话框通过window.dialogArguments来取得传递进来的参数。sF 阅读全文
posted @ 2012-07-07 13:40 cw_volcano 阅读(970) 评论(0) 推荐(0) 编辑
摘要: DateBox 日期显示默认的格式为“dd/mm/yyyy”,如果想自定义成我们的格式需要实现两个函数,formatter和parser。formatter函数使得选择日期后将其格式化为我们需要的格式,parser函数在选择好日期后告诉控件如何去解析我们自定义的格式。定义如下:formatter:A function to format the date, the function take a 'date' parameter and return a string value.parser:A function to parse a date string, the fun 阅读全文
posted @ 2012-07-07 13:29 cw_volcano 阅读(255) 评论(0) 推荐(0) 编辑
  2012年7月6日
摘要: http://www.cpbcw.com/codetree1365/PSD2swfHelper.cs.htmlhttp://tangshuo.iteye.com/blog/5383611.using System.Web;using System.Text;public static class PSD2swfHelper{ /// <summary> /// 转换所有的页,图片质量80% /// </summary> /// <param name="pdfPath">PDF文件地址</param> /// <para 阅读全文
posted @ 2012-07-06 15:56 cw_volcano 阅读(2811) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页