随笔分类 -  .net

摘要:尊重原创:http://www.admin10000.com/document/5999.html当我们的网站需要支持下载大文件时,如果不做控制可能会导致用户在访问下载页面时发生无响应,使得浏览器崩溃。可以参考如下代码来避免这个问题。using System;namespace WebApplica... 阅读全文
posted @ 2015-11-06 14:47 德玛西亚冲锋 阅读(375) 评论(0) 推荐(0)
摘要:注:时间有点忙,直接copy 过来的,要查看原址:http://www.developer.com/net/dealing-with-json-dates-in-asp.net-mvc.htmlIntroductionMost of the time, data transfer during Aj... 阅读全文
posted @ 2015-07-15 16:48 德玛西亚冲锋 阅读(390) 评论(0) 推荐(0)
摘要:对应站点目录的IUSR的权限没设造成的...在属性——>安全——> 高级 中把IUSR用户找出来添加好就OK了注:IUSR(匿名访问 Internet 信息服务的内置帐户) 阅读全文
posted @ 2015-04-14 15:28 德玛西亚冲锋 阅读(3483) 评论(0) 推荐(0)
摘要:表单校验 “灰色字提醒录入” *标题: ... 阅读全文
posted @ 2015-04-01 15:13 德玛西亚冲锋 阅读(259) 评论(0) 推荐(0)
摘要:// #region 取虚拟目录示例代码//获取网站虚拟目录名称function GetVirtualDirectoryName() { var pathname = removeFirstSlash(location.pathname); var pos = pathname.... 阅读全文
posted @ 2015-03-30 16:28 德玛西亚冲锋 阅读(202) 评论(0) 推荐(0)
摘要://各屏幕弹出窗样式// 1366*768var style_1366x768 = "dialogWidth:950px;dialogHeight:650px;help:no;center:yes;status:no;resizable:no;location:yes;";//弹出窗口示例代码fun... 阅读全文
posted @ 2015-03-30 11:34 德玛西亚冲锋 阅读(175) 评论(0) 推荐(0)
摘要:原文引自:http://blog.csdn.net/fyxxq/article/details/7071978记得刚学习程序流一章的时候,就是搞不清楚In和Out,不知道什么时候用in什么时候用out,所以一部分人采取死记硬背的方式BufferedReader in = new BufferedRe... 阅读全文
posted @ 2015-03-29 20:57 德玛西亚冲锋 阅读(949) 评论(0) 推荐(0)
摘要:等注册完成后网站就可以打开了。win2008下提示未能从程序集“System.ServiceModel, Version=3.0.0.0问题解决 在Windows Server 2008中的IIS服务器中部署WCF服务程序时,通过浏览器访问报出如下错误: 未能从程序集“System.ServiceM... 阅读全文
posted @ 2015-03-18 15:33 德玛西亚冲锋 阅读(298) 评论(0) 推荐(0)
摘要:示例: 阅读全文
posted @ 2015-03-11 17:21 德玛西亚冲锋 阅读(188) 评论(0) 推荐(0)
摘要:C#转义字符c#里 @ 表示的是:1、在C#中,"c:\\temp"表示路径是c:\temp; 而@"c:\temp"就表示c:\temp; 所以,@的作用就应该是忽略转义字符的作用. 2、如果字符串中有",则写成"";如:string aa=@"{ name:""name""}";3、在strin... 阅读全文
posted @ 2015-03-10 12:50 德玛西亚冲锋 阅读(1002) 评论(0) 推荐(0)
摘要:1、.net 中JSON对象格式模板// JSON键值对格式:'key':'value' public static string FORMAT_KEYVALUE = "\"{0}\":\"{1}\""; // JSON键值对格式:'key':'value'public static strin... 阅读全文
posted @ 2015-03-10 12:26 德玛西亚冲锋 阅读(436) 评论(0) 推荐(0)
摘要:解决方案:IIS服务器管理-default web site 绑定-选择使用的IP-编辑-IP地址:全部未匹配 阅读全文
posted @ 2015-03-09 09:43 德玛西亚冲锋 阅读(881) 评论(0) 推荐(0)
摘要:无法在web服务器上启动调试,服务器不支持对ASP.NET 或ATL Server应用程序进行调试。a>.DCOM配置里的属性灰色不可用的解决方法, 1>.管理工具->组件服务-计算机-电脑-iis admin server (详情查看) appid= iis admin server A9E696... 阅读全文
posted @ 2015-03-09 09:42 德玛西亚冲锋 阅读(633) 评论(0) 推荐(0)
摘要:DataTableCommon类主要是帮助取值方法列表:public static string GetCellString(DataTable dt,int row, int column)public static string GetCellString(DataTable dt,int ro... 阅读全文
posted @ 2015-02-25 16:33 德玛西亚冲锋 阅读(256) 评论(0) 推荐(0)
摘要:1、这种调试方式是区别于使用Visual Studio 自带的调试方式2、点击【创建虚拟目录】,成功 阅读全文
posted @ 2015-02-02 16:18 德玛西亚冲锋 阅读(205) 评论(0) 推荐(0)
摘要:1、SimpleDateFormat.parse 把指定格式字符串转日期类型public static Calendar convToCalender(String str,String template){ SimpleDateFormat sdf; Date date... 阅读全文
posted @ 2015-02-02 16:02 德玛西亚冲锋 阅读(478) 评论(0) 推荐(0)
摘要:/// /// 更改时间格式[HH:mm:ss]到[HHmmss] /// /// /// public static string TimeToJsonTime(string input) { ... 阅读全文
posted @ 2015-02-01 23:42 德玛西亚冲锋 阅读(375) 评论(0) 推荐(0)
摘要:示例:更改日期格式下面的代码示例使用Regex.Replace方法将mm/dd/yy格式的日期替换为dd-mm-yy格式的日期。static string MDYToDMY(string input) { return Regex.Replace(input, "\\b(?... 阅读全文
posted @ 2015-02-01 22:48 德玛西亚冲锋 阅读(299) 评论(0) 推荐(0)