随笔分类 - C#
摘要:SetEnv force-proxy-request-1.0.1 SetEnv proxy-nokeepalive 1 有区分大小写,避免拒绝访问 <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "
阅读全文
摘要:https://blog.csdn.net/UnSkyToo/article/details/47860521?ADUIN=271804284&ADSESSION=1628982870&ADTAG=CLIENT.QQ.5827_.0&ADPUBNO=27151
阅读全文
摘要:<dependentAssembly> <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0
阅读全文
摘要:TaskScheduler uiContext = TaskScheduler.FromCurrentSynchronizationContext(); Task t = Task.Factory.StartNew(() => { }).ContinueWith(m => { }, uiContex
阅读全文
摘要:void gridView1_MouseDown(object sender, MouseEventArgs e) { GridHitInfo info; Point pt = winGridView1.gridView1.GridControl.PointToClient(Control.Mous
阅读全文
摘要:ITempFrmDeleagte sendtempfrm = tableForm as ITempFrmDeleagte; if (sendtempfrm != null) { sendtempfrm.OpenModifyFrm += mainDialog.sendtempfrm_OpenModif
阅读全文
摘要:true 表示跳过控件的默认处理;false 表示还将该事件传递给默认控件处理程序。 下面的示例确定用户是否按了非数值键,如果是,则 KeyPress 使用属性取消事件 Handled // Boolean flag used to determine when a character other
阅读全文
摘要:问题:当新建一个窗体时,添加KeyDown事件后,会正常处理;但是当添加有控件时,比如Button,TextBox,就不会触发窗体的KeyDown事件,也没有调用KeyDown事件的处理程序。 原因:由于窗体中添加了控件,于是焦点就在其中一个控件上,如果我们要处理的事件窗体和获取焦点的控件都同时拥有
阅读全文
摘要:新增一行 Response.Write("<meta http-equiv=Content-Type content=\"text/html; charset=UTF-8\">"); Response.Clear(); Response.Buffer = false; Response.Charse
阅读全文
摘要:要控制执行时间,我们必须使用异步模式,在另外一个线程中执行方法,如果超时,则抛出异常终止线程执行。 如下实现的方法: class Program { static void Main(string[] args) { //try the five second method with a 6 sec
阅读全文
摘要:<system.web> <httpRuntime requestValidationMode="2.0" maxRequestLength="3072" ></httpRuntime> <!--单位:KB 3072=3MB 默认是4MB,最大支持2GB--> </system.web> <system.webServer> <security> <requestFiltering> <reque
阅读全文
摘要:winform Anchor和Dock属性
阅读全文
摘要:devexpress layoutview
阅读全文
摘要:Pipelines - .NET中的新IO API指引(一)
阅读全文
摘要:用ASP.NET Core 2.1 建立规范的 REST API -- 缓存和并发
阅读全文
摘要:基于 Consul 实现 MagicOnion(GRpc) 服务注册与发现
阅读全文