随笔分类 -  C#

部署 IIS 报错
摘要:今天一个IIS报错花费我很长时间,终于解决了。问题1:在IIS上部署后,浏览提示:应用程序中的服务器错误,当前标示("Administration")没有"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" 的写访问权限。去网上找解决方案:在cmd 里面执行 C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i -enable,添加NetWrok Service和当前用户权限,还是同样报错,而且 阅读全文
posted @ 2014-04-09 17:29 Tim_wu 阅读(245) 评论(0) 推荐(0)
打开文件夹
摘要:string path="路径"System.Diagnostics.Process.Start(path); 阅读全文
posted @ 2013-01-06 15:16 Tim_wu 阅读(97) 评论(0) 推荐(0)
winform多语言
摘要:private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) {CultureInfo info = null;if (comboBox1.SelectedIndex == 0)SetLang("zh-cn", this, this.GetType());elseSetLang("en-us", this, this.GetType());}private void SetLang(string lang, Form form, Type formType){System. 阅读全文
posted @ 2013-01-06 15:14 Tim_wu 阅读(228) 评论(0) 推荐(0)
数字转大写
摘要:static string ConvertToChinese(double x){string s = x.ToString('#L#E#D#C#K#E#D#C#J#E#D#C#I#E#D#C#H#E#D#C#G#E#D#C#F#E#D#C#.0B0A');string d = Regex.Replace(s, @'((?<=-|^)[^1-9]*)|((?'z'0)[0A-E]*((?=[1-9])|(?'-z'(?=[F-L\.]|$))))|((?'b'[F-L])(?'z'0)[0A-L]*( 阅读全文
posted @ 2013-01-06 15:11 Tim_wu 阅读(174) 评论(0) 推荐(0)
rdlc 查询条件
摘要:public partial class ReportSearch : Base.BaseReportSearchControl { public string XmlKey { get; set; } public ReportSearch(LocalReport localReport) : base(localReport) { InitializeComponent(); } #region private Variable Field field =... 阅读全文
posted @ 2012-12-20 22:59 Tim_wu 阅读(480) 评论(0) 推荐(0)
操作rdlc
摘要:public class RdlcHelper { /// <summary> /// 对应XML 的文件地址,每个RdlcHelper实体操作 只对应一个文件,不管是本地的还是服务器上的 /// </summary> public string RdlcFile { get; private set; } public RdlcHelper() { } #region 从rdlc文件里面读取字段和字段类型 /// <summary> /// ... 阅读全文
posted @ 2012-12-20 22:56 Tim_wu 阅读(404) 评论(0) 推荐(0)