随笔分类 - .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.
阅读全文
摘要:exec sp_spaceused 'tablename'
阅读全文
摘要:没用Updatepanel的页面,这样使用:btnSave.OnClientClick = "if(!Page_ClientValidate()){Page_BlockSubmit = false;return false;}" + this.GetPostBackEventReference(this.btnSave) + ";this.disabled=true;";使用Updatepanel...
阅读全文
摘要:(译)SDL.NET Surfaces 相关介绍翻译:Donhttp://don.cnblogs.com/Surfaces(平面)本教程教大家如何使用SDL.NET的Surfaces在屏幕上渲染图形。(本教程的前提条件是认为您已经学会了“Hello World”哦!) 目录1、引言2、功能2.1 Blit2.2 Primitive Drawing 2.3颜色、透明度和Alp...
阅读全文
摘要:用这句试试:(System.Diagnostics.Process.GetCurrentProcess().ProcessName != "devenv")
阅读全文
摘要:使用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...
阅读全文
摘要:使用Ctrl+N打开的浏览器窗口的Session共享是否给你带来一些麻烦呢?如何解决呢?此处仅描述了一个我在实际工作中遇到的问题,若有好的解决方法或建议请您留言。
阅读全文
摘要:使用sp_changeobjectowner批量修改SQLServer中Table的owner
阅读全文
摘要:foreach (int i in Enum.GetValues(typeof(ReportAuditStatus))){ ddlAuditStatus.Items.Add(new ListItem(((ReportAuditStatus)i).ToString(), i.ToString()));}
阅读全文
摘要:public static string RemoveHTML(string strHtml) { string strOutput=strHtml; Regex regex = new Regex(@"]+>|]+>"); strOutput = regex.Replace(strOutput,""); return strOutput; }
阅读全文
摘要:解决GridView的DataFormatString无效
阅读全文

浙公网安备 33010602011771号