随笔分类 - c#
摘要://http://www.tmssoftware.biz/flexcel/doc/vcl/api/FlexCel.Core/TExcelFile/InsertAndCopyRange.html#texcelfileinsertandcopyrangetxlscellrange-integer-integer-integer-tflxinsertmode //...
阅读全文
摘要:DataTable myDt =dt; //删除列 myDt.Columns.Remove("minArea"); myDt.Columns.Remove("maxArea"); //调整列顺序 ,列排序从0开始 myDt.Columns["num"].SetOrdinal(1); //修改列标题名称 dt.Columns["num"].ColumnName = "搜索量"; dt.Colu...
阅读全文
摘要:https://msdn.microsoft.com/zh-cn/library/3yekbd5b(VS.80).aspx
阅读全文
摘要:在线生成实体:http://tool.chinaz.com/tools/json2entity.aspx
阅读全文
摘要:这个不能用了http://www.developerfusion.com/tools/convert/csharp-to-vb/搜索几十分钟才找到另一个桌面版的,不怎么好用!http://www.tangiblesoftwaresolutions.com/Free_Editions.html
阅读全文
摘要:说明:Cache类不能在 ASP.NET 应用程序外使用。它是为在 ASP.NET 中用于为 Web 应用程序提供缓存而设计和测试的。在其他类型的应用程序(如控制台应用程序或 Windows 窗体应用程序)中,ASP.NET 缓存可能无法正常工作。http://msdn.microsoft.com/...
阅读全文
摘要:解决方法是指定cookieless即可,,相信很多用FormsAuthenticationTicket来做验证的都会碰到这个问题。。。。。
阅读全文
摘要:A的设置 <httpModules><add name="SiteCache" type="SiteCache"/></httpModules>B的设置(不用的项,清除) <httpModules><clear/> </httpModules>如果A.B都用到<appSettings><add key="app" value="" /></appSettings>B运行时会提示app已经加载,此时可以<
阅读全文
摘要:<system.webServer> <handlers> <add name="*html" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classic
阅读全文
摘要:C#调用外部进程的类,网上可以搜出很多来,为什么要再写一遍,实在是因为最近从网上拷贝了一个简单的例程用到项目中,运行有问题,后来研究了半天,才解决了这些问题。于是打算写这么一篇博文,一来说说调用一个外部进程这么简单的一件事究竟会有哪些问题,二来也希望我写的这个相对比较完整的类可以为软件开发的同道们节约一些脑细胞,以便集中优势兵力解决那些真正高深复杂的软件问题。 在开始正题之前,我们先来看一看网上比较常见的执行外部进程的函数 private string RunCmd(string command) { //例Process Process p = new Process(); p.StartI
阅读全文
摘要:之前的做法是:[代码]如果value已经被Html Encode过一次的话,再调用Server.HtmlEncode会得到非预期的值。新的%: %语法解决了这个问题,使用起来也非常的简单。[代码]
阅读全文
摘要:在AspNet4中的数据绑定控件(GridView ListView…)中新增了一个ClientIDRowSuffix属性,ClientIDRowSuffix属性可以影响数据绑定控件内部控件的ID,ClientIDRowSuffix控件的值可以设置为数据绑定控件的数据源的任何一列。值得注意的是ClientIDRowSuffix属性是和ClientIDMode属性配合使用的。ClientIDMode有四种属性值,这个在Net4.0---对HTML净化的处理一文中有提到,下面介绍如何在数据绑定控件中使用ClientIDRowSuffix:1 在页面中放一个GridView控件,在控件添加一个模板列
阅读全文
摘要:INSERT INTO qh_ly ( [Topics] ,[Message] ,[Name] ,Gender ,LDName ,[Addres] ,[ZipCode] ,[Phone] ,[Fax] ,[Mobile] ,[E-mail] ) VALUES ([@Topics],[@Message],[@Name],[@Gender],[@LDName],[@Addres],[@ZipCode]...
阅读全文
摘要:把以下内容加在web.config的<system.webServer>节点[代码]
阅读全文
摘要:文件操作,最难的部分就是编码问题了。using System;using System.Collections.Generic;using System.Text;using System.IO;namespace Microshaoft.Text{ #region Class IdentifyEncoding..... /// <summary> /// 检测字符编码的类 /// &...
阅读全文
摘要:撇开性能来说,C#中的List<T>比ArrayList和Hashtable难用多了。[代码][代码]参照:http://developer.51cto.com/art/200909/148801.htmhttp://blog.chinaunix.net/u1/41814/showart_1093234.html http://www.cnblogs.com/yjmyzz/archiv...
阅读全文
摘要:View Code Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load BackgroundWorker1.WorkerReportsProgress = True BackgroundWorker1.WorkerSupportsCancellation = True End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handl
阅读全文
摘要:http://converter.telerik.com/http://blogs.msdn.com/goto100/archive/2008/07/23/converting-from-c-to-visual-basic-net.aspx
阅读全文

浙公网安备 33010602011771号