摘要: 在给数据库视图做Update From Database的时候出现这个错误:{"\r\nEnterprise.TopUEnterprise.msl(342,10) : error 3024: Problem in mapping fragments starting at line 342:Must specify mapping for all key properties (V_PositionDetails.PositionId, V_PositionDetails.PositionType, V_PositionDetails.CityId, V_PositionDetail 阅读全文
posted @ 2012-11-20 15:55 月小 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 三步配置log4net1.Nuget: install-package log4net2.add log4 config in web.configView Code 1<log4net>2<appendername="LogFileAppender"type="log4net.Appender.RollingFileAppender">3<Filevalue="Log\"/>4<AppendToFilevalue="true"/>5<rollingStylev 阅读全文
posted @ 2012-11-19 10:35 月小 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 公司的网站近期开始正式推广,网站主要面对在校大学生和需要招聘优秀应届毕业生的企业。网站刚刚创建,还有很多东西不完善,SEO也刚刚部署,耐心等待百度收录中。。。这一步网址:http://www.zheyibu.com/ 阅读全文
posted @ 2012-11-08 14:23 月小 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 网站用的域名是 www.xxx.com现在 xxx.com也解析到相同的IP,但在浏览器中不输入www的情况默认并不能访问这个时候需要配置下IIS,进行下301永久重定向1.在www.xxx.com对应的网站所在目录下建立新文件夹,命名xxx1,在随便创建一个空的index.html2.在IIS7下新建网站,网站目录制定未刚刚创建的文件夹xxx1,默认文档设为index.html,并绑定域名 xxx.com(此时访问xxx.com,浏览器应该会展示index.html中的内容 )3.在IIS7下配置新建网站的重定向 具体操作方法:选择”HTTP重定向“,勾选”将请求重定向到此目标“,状态代码选 阅读全文
posted @ 2012-10-29 17:29 月小 阅读(958) 评论(0) 推荐(0) 编辑
摘要: Gets or sets a value that indicates when anUpdatePanelcontrol's content is updated.调用UpdatePanel.Update()必须将该属性设为Conditional 阅读全文
posted @ 2012-10-17 10:57 月小 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 开发完部署到服务器的时候才知道这个问题,只好把程序版本将为4.0,还好仅仅改了几个命名空间,没有太大影响。原来4.5的新特性我都没用到啊。。。 阅读全文
posted @ 2012-08-20 09:11 月小 阅读(6298) 评论(0) 推荐(0) 编辑
摘要: 项目分出了一个branch,新增了几个实体类,但是不小心更新到原有数据库上了,导致原解决方案运行出现DataContext已更改的错误。我想,小问题,直接手动删了数据库里面新生成的几张表就行了,结果仍然报错,我是哪里少删了么?找了半天无果, 最后在global文件中加上Database.SetInitializer<XXXDataContext>(null); 解决 阅读全文
posted @ 2012-08-20 09:04 月小 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 突然发现ajax.actionlink调用的方法全是GET方式的,就算制定了POST也不行,Confirm窗口也弹不出来。。。直接StackOverFlow搜索 ajax.actionlink post not work, 出来一堆结果,有的是因为路由参数不对,有的是回调方法不对,都不是我的情况,最终发现了这篇http://stackoverflow.com/questions/6781063/ajax-actionlink-ajaxoptions-not-working?answertab=active#tab-top呃,好吧,原来忘了引用:<script src="~/Sc 阅读全文
posted @ 2012-07-28 13:23 月小 阅读(1482) 评论(3) 推荐(0) 编辑
摘要: 搞了半天,原来是我调试discuznt toolkit的时候改了源代码,导致引用toolkit dll的程序出了问题,唉,傻掉,幸亏有Fiddler帮忙~现在赶紧把引用的dll拷出来重新引用 ! 阅读全文
posted @ 2012-07-25 21:21 月小 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Controller中的Edit方法 [HttpPost] publicActionResultEdit(Commentcomment){if(ModelState.IsValid){db.Entry(comment).State=EntityState.Modified;db.SaveChanges();returnRedirectToAction("Index");}ViewBag.UserId=newSelectList(db.Users,"UserId","Email",comment.UserId);ViewBag.Post 阅读全文
posted @ 2012-06-27 23:02 月小 阅读(872) 评论(0) 推荐(0) 编辑