09 2012 档案

摘要:在GridView中加入 CheckBox控件,想通过单击选中出现如下图所示效果:具体做法是:前台GV部份省掉。只加关键的CheckBox部份。view plaincopy to clipboardprint?<asp:CheckBox ID="ItemCheckBox" oncheckedchanged="ItemCheckBox_CheckedChanged" AutoPostBack="true" runat="server" /><asp:CheckBox ID="ItemChe 阅读全文
posted @ 2012-09-28 15:48 大脸 阅读(6816) 评论(0) 推荐(0) 编辑
摘要:function createEditor(){ fck=new FCKeditor("fckeditor"); //实例一个编辑器 fck.BasePath="./fckeditor/"; //指定路径 fck.Height="100%"; fck.Width="100%"; $("textarea").html(fck.CreateHtml());}//获取编辑器中HTML内容function getEditorHTMLContents(EditorName) { var oEditor = 阅读全文
posted @ 2012-09-27 14:28 大脸 阅读(2895) 评论(0) 推荐(0) 编辑
摘要:效果图:那么为什么说是FCKeditor的冰冷之心呢?这不是哗众取宠,主要是说它使用起来有点麻烦,下文就详细说明如何搞定这玩意儿。1.FCKeditor的官方网站是:http://www.fckeditor.net/download目前最新的FCKeditor 2.4.2版本。请在此页下载:http://sourceforge.net/project/showfiles.php?group_id=75348如图所示:要下载FCKeditor2.4.2.zip和 FCKeditor.NET版的2个zip包。说明:FCKeditor2.4.2.zip是其最新的Javascript文件和图片什么的; 阅读全文
posted @ 2012-09-27 14:04 大脸 阅读(206) 评论(0) 推荐(0) 编辑
摘要:删除CookieResponse.Cookies["Cookiename"].Expires = DateTime.Now.AddDays(-1);用C#如何创建、读取cookie用C#如何创建、读取cookie:一、创建cookie,并写入数据://创建、写入CookieHttpCookiecookie=Request.Cookies["MWS_User"];if(cookie==null){cookie=newHttpCookie("MWS_User");}cookie.Values.Set("UserID", 阅读全文
posted @ 2012-09-18 13:13 大脸 阅读(7511) 评论(1) 推荐(1) 编辑
摘要:So easy,JQuery调用WebServices距离上一篇博客文章已经是好长时间了,一来才疏学浅,二来没有时间,哈哈,废话不多说,入题先问你是不是经常作这种开发,前端用JS写逻辑,后端用aspx或者ashx作服务?你是不是经常在请求aspx的时候在查询字符串中拼接诸如a.aspx?method=getDepartmetn&param1=1&param2=2的字符串?你甚至为每个ajax请求添加一个后端页面!你是不是甚至在想,尼玛,要是能够直接调用C#类文件中的方法就爽了?!(这里FishLi做了一个框架,有兴趣可以去看看)可是,你大概忘记了,我们是程序员,我们是懒惰的,我 阅读全文
posted @ 2012-09-13 17:09 大脸 阅读(557) 评论(0) 推荐(0) 编辑
摘要:if (FileUp.PostedFile.ContentType == "image/pjpeg" || FileUp.PostedFile.ContentType == "image/gif" || FileUp.PostedFile.ContentType == "image/bmp") //设置上传文件类型加上FileUp.PostedFile.ContentType=="application/x-shockwave-flash"----------------------备注其它类型的ContentTy 阅读全文
posted @ 2012-09-11 11:11 大脸 阅读(1751) 评论(0) 推荐(0) 编辑
摘要:分类:Sql Server 20052010-10-22 16:331945人阅读评论(0)收藏举报Bulk Insert命令详细BULK INSERT以用户指定的格式复制一个数据文件至数据库表或视图中。语法:Sql代码BULKINSERT[['database_name'.]['owner'].]{'table_name'FROM'data_file'} WITH( [BATCHSIZE[=batch_size]], [CHECK_CONSTRAINTS], [CODEPAGE[='ACP'|'OEM&# 阅读全文
posted @ 2012-09-10 17:43 大脸 阅读(9001) 评论(0) 推荐(0) 编辑
摘要:SQL Server 索引结构及其使用(二)作者:freedk一、深入浅出理解索引结构改善SQL语句 很多人不知道SQL语句在SQL SERVER中是如何执行的,他们担心自己所写的SQL语句会被SQL SERVER误解。比如:select * from table1 where name=''zhangsan'' and tID > 10000和执行:select * from table1 where tID > 10000 and name=''zhangsan'' 一些人不知道以上两条语句的执行效率是否一样,因为 阅读全文
posted @ 2012-09-10 11:51 大脸 阅读(190) 评论(0) 推荐(0) 编辑
摘要:为避免出错的准备出错1:类型“GridView”的控件“GridView1”必须放在具有 runat=server 的窗体标记内解决方案:在后台文件中重载VerifyRenderingInServerForm方法,如:public override void VerifyRenderingInServerForm(Control control){}出错2:只能在执行 Render() 的过程中调用 RegisterForEventValidation(RegisterForEventValidation can only be called during Render();解决方案:在源中, 阅读全文
posted @ 2012-09-05 15:24 大脸 阅读(5575) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示