随笔分类 -  .Net

摘要:关于HttpPost,有这样两种可Post的数据载体,分别是MultipartEntity和UrlEncodedFormEntity,对这两者的共性和异性做如下解释和备忘:共性:1、都属于HTTP的POST范畴2、实现了接口HttpEntity异性:1、Content-Type不同。分别是:Content-Type:multipart/form-data; boundary=***********,Content-Type:application/x-www-form-urlencoded2、RequestBody不同 MultipartEntity是有多个数据段组成,各个数据段有自己的Co. 阅读全文
posted @ 2013-12-26 13:36 Don 阅读(767) 评论(0) 推荐(0)
摘要:exec sp_spaceused 'tablename' 阅读全文
posted @ 2012-06-08 11:03 Don 阅读(251) 评论(0) 推荐(0)
摘要:没用Updatepanel的页面,这样使用:btnSave.OnClientClick = "if(!Page_ClientValidate()){Page_BlockSubmit = false;return false;}" + this.GetPostBackEventReference(this.btnSave) + ";this.disabled=true;";使用Updatepanel... 阅读全文
posted @ 2010-08-03 14:47 Don 阅读(615) 评论(0) 推荐(0)
摘要:(译)SDL.NET Surfaces 相关介绍翻译:Donhttp://don.cnblogs.com/Surfaces(平面)本教程教大家如何使用SDL.NET的Surfaces在屏幕上渲染图形。(本教程的前提条件是认为您已经学会了“Hello World”哦!) 目录1、引言2、功能2.1 Blit2.2 Primitive Drawing 2.3颜色、透明度和Alp... 阅读全文
posted @ 2008-09-08 23:46 Don 阅读(1024) 评论(0) 推荐(0)
摘要:用这句试试:(System.Diagnostics.Process.GetCurrentProcess().ProcessName != "devenv") 阅读全文
posted @ 2008-06-12 15:08 Don 阅读(421) 评论(1) 推荐(1)
摘要:使用vs2008编译一个项目时遇到错误, Task failed because "AL.exe" was not found 解决方法如下:First of all you need to find the path of AL.exe on your machine, AL.exe should be there when you install Windows SDK.Go to: Star... 阅读全文
posted @ 2008-04-07 09:54 Don 阅读(2069) 评论(0) 推荐(0)
摘要:Asp文件加密 阅读全文
posted @ 2008-01-08 13:16 Don 阅读(342) 评论(0) 推荐(0)
摘要:使用Ctrl+N打开的浏览器窗口的Session共享是否给你带来一些麻烦呢?如何解决呢?此处仅描述了一个我在实际工作中遇到的问题,若有好的解决方法或建议请您留言。 阅读全文
posted @ 2007-10-17 18:08 Don 阅读(454) 评论(0) 推荐(0)
摘要:使用sp_changeobjectowner批量修改SQLServer中Table的owner 阅读全文
posted @ 2007-10-16 17:23 Don 阅读(1105) 评论(0) 推荐(0)
摘要:foreach (int i in Enum.GetValues(typeof(ReportAuditStatus))){ ddlAuditStatus.Items.Add(new ListItem(((ReportAuditStatus)i).ToString(), i.ToString()));} 阅读全文
posted @ 2007-04-25 15:12 Don 阅读(250) 评论(0) 推荐(0)
摘要:public static string RemoveHTML(string strHtml) { string strOutput=strHtml; Regex regex = new Regex(@"]+>|]+>"); strOutput = regex.Replace(strOutput,""); return strOutput; } 阅读全文
posted @ 2007-01-04 13:46 Don 阅读(400) 评论(0) 推荐(0)
摘要:解决GridView的DataFormatString无效 阅读全文
posted @ 2006-12-30 16:51 Don 阅读(760) 评论(0) 推荐(0)