随笔 - 211  文章 - 1  评论 - 108  阅读 - 61万

随笔分类 -  ASP.NET

Asp.net MVC23 使用Areas功能的常见错误
摘要:一般WEB项目都会不同的页面区域,如:用户前台、用户后台、管理员后台。访问的URL:用户前台:www.domain.com/home/index用户后台:www.domain.com/admin/home/index管理员后台:www.domain.com/manager/home/indexasp.net mvc 2/3 提供了Areas功能来实现1.打开新建项找到Areas,分别添加admin,manager,添加好后项目结构类似下面Areas下有各自独立的Controllers,Models,Views。此外还多了个文件AreaRegistration为后缀的.cs文件. 这个文件主要的 阅读全文
posted @ 2012-07-24 09:50 稻草人.Net 阅读(4782) 评论(1) 推荐(0) 编辑
使用EF Power Tools 错误参数 80070057解决方法
摘要:错误参数。(异常来自 HRESULT:0x80070057 (E_INVALIDARG))An error occurred while trying to instantiate the dbcontext type TestDB2Context see the output window for detailspublic class ProductContext : DbContext{ public ProductContext(): base(@"Data Source=.;Initial Catalog=Product;Integrated Security=True&q 阅读全文
posted @ 2012-07-06 10:45 稻草人.Net 阅读(2362) 评论(3) 推荐(0) 编辑
NBear视频教程下载
摘要:NBear视频教程之基于NBear.Data的实体持久化: http://download.csdn.net/source/2431203 NBear官方视频教程入门篇: http://download.csdn.net/source/2431260 后续未完.. 阅读全文
posted @ 2010-06-19 10:06 稻草人.Net 阅读(244) 评论(0) 推荐(0) 编辑
IIS6上传文件尺寸太小解决办法
摘要:IIS6出于安全考虑,默认最大请求200K(也即最大提交数据限额为200KByte,204800Byte).解决办法:关闭IISAdminService服务打开\Windows\system32\inesrv\metabase.xml修改ASPMaxRequestEntityAllowed的值为自己需要的,默认为204800启动IISAdminServiceAddon:解决方法21.新建文本文件:... 阅读全文
posted @ 2006-12-18 11:35 稻草人.Net 阅读(409) 评论(0) 推荐(0) 编辑
WIN2000 XP IIS连接数修改方法
摘要:WindowsXP专业版andWindows2000专业版IIS连接数的更改(破解)我们知道Windows2000专业版或WindowsXP专业版操作系统中IIS最多允许10个客户端的连接,在Windows2000服务器版或Windows2003服务器版操作系统中则不存在这种连接限制问题。  Microsoft提供了一个管理IIS的小工具MetaEdit,MetaEdit工作在WindowsNT4... 阅读全文
posted @ 2006-12-18 11:18 稻草人.Net 阅读(4802) 评论(6) 推荐(0) 编辑
ASP.net中如何取当前页面的路径
摘要:Request.ServerVariables["SERVER_NAME"].ToString() + Request.ApplicationPath.ToString() + "/upedFile/";Request.ServerVariables["SERVER_NAME"].ToString() 取服务器的名称Request.ApplicationPath.ToString() 取应用程序的... 阅读全文
posted @ 2006-12-12 15:52 稻草人.Net 阅读(1383) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示