Loading

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: from emp in EmployeeInfolet years = EntityFunctions.DiffYears(emp.Birthday.Value,DateTime.Now)let birthdayThisYear = EntityFunctions.AddYears(emp.Birt... 阅读全文
posted @ 2014-07-30 18:34 Dhoopu 阅读(292) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/13054212/vs-2012-ef-5-0-update-model-from-database-not-picking-up-table-changesYes, this still works in VS2012. Are you using the default code generation or do you have a TT file? It could be that it's being added to the EDMX but your class files are not being 阅读全文
posted @ 2014-03-16 18:58 Dhoopu 阅读(783) 评论(0) 推荐(1) 编辑
摘要: As Imentioned earlier, solutions that rely on User-Agent sniffing may break, when a new browser or a new version of an existing browser is released. Unfortunately because ASP.NET also contains browser-specific code, the new Internet Explorer 11 may cause some problems there as well.Lucky coincidence 阅读全文
posted @ 2014-02-27 13:58 Dhoopu 阅读(665) 评论(0) 推荐(0) 编辑
摘要: A few days ago, while working on anASP.NET 4.0 Web project, I got an issue. The issue was, when user entersnon-encoded HTML contentinto a comment text box s/he got something like the following error message:"A potentially dangerous Request.Form value was detected from the client".This was 阅读全文
posted @ 2013-12-05 16:19 Dhoopu 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 需要安装 mysql-connector-net-6.7.4.msi在C盘安装mysql的位置找到三个DLL,复制到Bin文件夹下在Web.config文件中添加对应配置: 阅读全文
posted @ 2013-12-05 14:08 Dhoopu 阅读(4091) 评论(0) 推荐(0) 编辑
摘要: Jquery UI Menu 默认是纵向展示的。Jquey UI Menu 设置API,http://api.jqueryui.com/menu/#option-position修改对应的CSS可以设置为横向展示。.ui-menu:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}.ui-menu .ui-menu-item { display: inline-block; float: left; ... 阅读全文
posted @ 2013-07-19 14:43 Dhoopu 阅读(8958) 评论(0) 推荐(0) 编辑
摘要: mysql数据库恢复(*frm)文件 WorkBench在使用虚拟服务器时,服务器提供商一般不会像我们使用本地数据库一样:使用导入导出(这样的文件后缀是*.sql)。大部分时候提供的是一个文件夹,里面包括:数据库名文件夹,文件夹里包括,*.frm,*.MYI,*.MYD,并且包含一个db.opt文件。分别介绍一下:*.frm----描述了表的结构*.MYI----表的索引*.myd----保存了表的数据记录db.opt----用文本编辑器打开,可以看到里面保存的是编码信息要把上述的数据库导入进mysql:安装mysql数据库:我安装的数据库是MySQL Server 5.5,安装目录选择:D: 阅读全文
posted @ 2013-07-04 14:35 Dhoopu 阅读(29208) 评论(1) 推荐(1) 编辑
摘要: 要在一个静态的背景上加一个透明的Flash会显示动态的效果,按照常规方式加了代码后,在IE中能显示透明背景Flash,但是用Firefox浏览器却发现没有透明的效果,那究竟应该怎么加呢?于是搜索和研究了一下。要在IE中实现flash背景透明,需要加这样一个值: 而在IE、Mozilla、Firefox浏览器中起作用的是这个标签{embed}{/embed}那这样,在{embed}标签内加入属性 wmode=”transparent” 就可以实现flash背景透明,遂修改代码如下: 这样在两个主流浏览器上都可以实现flash透明了。 为什么会这样?我搜了一下 简单的解释就是:这是 Macr... 阅读全文
posted @ 2013-07-01 16:33 Dhoopu 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 在Umbraco的论坛里看到的办法,演示了如何在Umbraco中使用Related Links并显示的过程。原文地址:http://www.nibble.be/?p=48 阅读全文
posted @ 2013-06-28 11:23 Dhoopu 阅读(252) 评论(0) 推荐(0) 编辑
摘要: I got this error today when working on a migrated ASP .NET MVC 4 project. It was especially confusing for me because I already had a reference toSystem.Data.Entityin my web project.The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You m 阅读全文
posted @ 2013-05-27 16:22 Dhoopu 阅读(5373) 评论(0) 推荐(0) 编辑
摘要: <button>get current</button>current tab: <span id="current"></span><div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> 阅读全文
posted @ 2013-05-06 22:18 Dhoopu 阅读(7271) 评论(0) 推荐(0) 编辑
摘要: 前两天,装了VS2012后,打开SQL2008配置管理工具,发现SQL服务名称里什么也没有,只有一个提示:(如图) 上网搜了,试了很多方法,像什么把windows\system32\wbem下的framedyn.dll复制到system32目录下,还有照一个老外说的,下什么更新补丁,都没用!!想重装SQL2008,结果运行安装程序,变成了英文版(以前装显示的是中文的),而且安装根目录选不了!巨想死! 万念俱灰下,打开360,卸载了一个叫"Microsoft SQL Server 2012LocalDB",重新打开SQL配置管理器,发现可以了~高兴啊!!http:... 阅读全文
posted @ 2013-04-23 11:28 Dhoopu 阅读(1267) 评论(1) 推荐(1) 编辑
摘要: I'm searching for the answer for three days in a row already. The matter is that I have a page, links on which should load Colorbox with AJAX content that in its turn contains links that should be loaded in the same Colorbox modal window. So far I managed to make it work (partially) by this:< 阅读全文
posted @ 2013-04-12 19:30 Dhoopu 阅读(577) 评论(0) 推荐(0) 编辑
摘要: DECLARE @i int set @i = 1 WHILE @i < 10000 BEGIN insert into sjSELECT CONVERT(varchar, CAST(RAND()* (139 - 130) + 130 AS int)) + CONVERT(varchar, CAST(RAND() * (99999999 - 32928404) + 32928404 AS int)) SET @i = @i + 1 ENDhttp://yopoing.blog.163.com/blog/static/21149536020093105737360/ 阅读全文
posted @ 2013-03-04 16:15 Dhoopu 阅读(517) 评论(0) 推荐(0) 编辑
摘要: string controllerName = (string)htmlHelper.ViewContext.RouteData.GetRequiredString("controller");string areaName = (string)htmlHelper.ViewContext.RouteData.DataTokens["area"];在 controller 中可以使用ControllerContext 取得:12ControllerContext.RouteData.Values["controller"]Contro 阅读全文
posted @ 2013-02-02 19:49 Dhoopu 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function () { $("a").each(function () { var textValue = $(this).html(); if (textValue == "XX概况" || textValue == "服务导航") { $(this).css("cursor", "default"); $(this).attr('href', '#'); //修改<a>的 href属性值为 # 这样状态栏不会 阅读全文
posted @ 2013-01-25 13:27 Dhoopu 阅读(2579) 评论(0) 推荐(0) 编辑
摘要: 先前在windows2003上安装了filezilla server 0.9.27做FTP服务器,最近发现用flashfxp连接后服务器端上的中文全是乱码。网上找了搜索一下信息,大意说是从0.9.14版之后用的字符集是UTF8,使用0.9.14及之前的版本是没有中文乱码问题的。还好FileZilla出了FileZillaPV这个补丁:http://sourceforge.net/projects/filezillapv/files/选 择Patched FileZilla Server这一项,windows下台下对应下载I386架构的文件,先停止FileZilla Server服务,将解压出来 阅读全文
posted @ 2013-01-06 16:09 Dhoopu 阅读(11869) 评论(0) 推荐(0) 编辑
摘要: public class ProcurementPhotoMenuCompare : IEqualityComparer<ProcurementPhotoMenuModel> { public bool Equals(ProcurementPhotoMenuModel x, ProcurementPhotoMenuModel y) { return (x.CategoryType == y.CategoryType); } public int GetHashCode(ProcurementPhotoM... 阅读全文
posted @ 2012-12-17 16:35 Dhoopu 阅读(2453) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE usp_Generic_Pagination @tblName varchar(255), -- 表名 @strGetFields varchar(1000) = '*', -- 需要返回的列 @fldName varchar(255)='', -- 排序的字段名 @PageSize int = 10, -- 页尺寸 @PageIndex int = 1, -- 页码 @doCount bit = 0, -- 返回记录总数,... 阅读全文
posted @ 2012-11-08 14:19 Dhoopu 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.发帖回复如果没有积分提示的动画请单生成_pageheader.htm和showtopic.htm模版,问题解决.2.如果问题还没解决,检查_pageheader.htm模版下有无下面这段代码<script type="text/javascript"> var creditnotice='{Scoresets.GetValidScoreNameAndId()}'; var forumpath = "{forumpath}"; </script>如果没有就在{link}和<script type=" 阅读全文
posted @ 2012-10-18 15:13 Dhoopu 阅读(308) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页