Loading

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: 最近在修改Discuz的代码以供客户使用,遇到一个问题就是BBS的帖子管理在Chrome和FireFox中无法正常加载处理,只出现一个处理中的层,然后就没有下文了。调试发现是一段XML的问题。“XML declaration allowed only at the start of the document.........”遇到这样的错误一般是xml开头有空行存在,请从配置文件开始找,删除头部与尾部空行即可!这一段代码是在Template下的_header.html文件里的 </div> <%else%> <%csharp%> Response.Clear 阅读全文
posted @ 2012-10-18 13:46 Dhoopu 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 解决办法1.查看IIS设置是否正确2.Discuz.Web有没有引用Discuz.Data.SqlServer3.DNT.config 有没有加Administrators 控制权限 阅读全文
posted @ 2012-10-08 18:37 Dhoopu 阅读(657) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2012-09-25 15:04 Dhoopu 阅读(322) 评论(0) 推荐(0) 编辑
摘要: javascript禁用浏览器滚动条的方法相信网络已经有比较多的方案,这里就总结一下js禁用浏览器滚动的代码,当然修改一下也可以让去jquery达到一样的效果:很多人用document.body.scroll = "no";这样的方法是不符合W3C标准的,当然标准有时候没那么重要,能用即可。不过IE6以及更老版本是不支持的。禁用浏览器滚动条的解决方案:document.body.parentNode.style.overflow="hidden";//隐藏且禁用document.body.parentNode.style.overflow="s 阅读全文
posted @ 2012-09-07 23:52 Dhoopu 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: What you have is a valid ADO.NET connection string - but it'sNOTa valid Entity Framework connection string.The EF connection string would look something like this:<add name="testEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;prov 阅读全文
posted @ 2012-09-04 23:45 Dhoopu 阅读(5569) 评论(0) 推荐(0) 编辑
摘要: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid要么是没有发现在配置中,指定的命名连接,不打算要用于EntityClient提供程序,或不是有效的解决办法:I suspect that your issue is coming from the fact that you have more than one project in your solution an 阅读全文
posted @ 2012-09-04 23:42 Dhoopu 阅读(1103) 评论(1) 推荐(1) 编辑
摘要: 1, 首先构建该JQuery教程实例中的index.html文件。代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JQuery实例 - 生成年月日</title> 阅读全文
posted @ 2012-09-04 15:00 Dhoopu 阅读(4827) 评论(1) 推荐(0) 编辑
摘要: 今天刚学MVC的Razor,一起用了Entity Framework ,结果出现如下错误:CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 阅读全文
posted @ 2012-09-04 00:17 Dhoopu 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: 1,文件信息:<?xml version="1.0"?><?mso-application progid="Excel.Sheet"?>2,正文部分应包含在<Workbook></Workbook>之间: <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-m 阅读全文
posted @ 2012-09-01 02:48 Dhoopu 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: webapplication网站中新加一个aspx页面会生成一个.designer.cs文件,打开可以发现,里面主要是用于声明控件变量,事件绑定等,他和aspx.cs文件配合使用,只为将控件声明和事件绑定与实际事件分离,编译时会合并。常常有人会出现这样一个问题:在aspx页面添加服务器控件时(控件写入的都正确),在cs里面找不到这个控件id ,然后看看designer.cs文件中没有刚写入的控件声明,我也遇到过,在开始的时候我就会,把控件删了,重新写下,结果还是不行,只能在designer.cs中手写控件声明了。能解决,不过很麻烦。其实一个特简单的方法:关闭.designer.cs文件,在as 阅读全文
posted @ 2012-09-01 02:04 Dhoopu 阅读(718) 评论(0) 推荐(0) 编辑
摘要: Over the last few months we've collected information on various issues related to design view not working in Visual Studio 2008 or Visual Web Developer Express 2008. Here is list of known issues and possible solutions:Microsoft Visual Studio Web Authoring Component fails to install.1. Pre-releas 阅读全文
posted @ 2012-08-30 21:42 Dhoopu 阅读(1122) 评论(1) 推荐(0) 编辑
摘要: //以避免当result值为1时出错 int result=dgrd.Items.Count%dgrd.PageSize; if (result==1) { dgrd.CurrentPageIndex = (dgrd.PageCount - 2);} 首先,你需要知道在最后一页上有多少数据项。为此,需要对Item Count和Page Size使用Mod(取模)运算符。由于Mod运算符返回的只是余数,所以绝对不会有任何多余的数据需要处理。如果页上只余一项,那么占位符变量Result就等于1。由于DataGri... 阅读全文
posted @ 2012-08-27 15:19 Dhoopu 阅读(395) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> $(document).ready(function() { $("input[name*='$txtReturnFile']").each(function(i, input) { $(input).bind("blur", function() { alert("bind successfully."); //TODO:some... 阅读全文
posted @ 2012-08-06 18:59 Dhoopu 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 一、过滤重复的数据1、完全重复的记录select distinct 字段1,字段2,字段3 from 数据表 2、部分关键字段重复的记录/*数据结构:角色档案(角色编码,角色,角色分类编码) 功 能:取出指定字段(角色分类编码)为关键字的无重复数据,重复的取第一条 说 明:重复记录取最后一条,只需要把min改成max即可 */ select * from 角色档案 t where 角色编码 in (select min(角色编码) from 角色档案 t1 group by t1.角色分类编码)二、删除重复记录数据库的使用过程中由于程序方面的问题有时候会碰到重复数据,重复数据导致了数据... 阅读全文
posted @ 2012-07-27 20:14 Dhoopu 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 由于台式机的内存插槽坏了一个槽,杯具了,只能用1G的内存了。原来是2G(1G×2)的.所以还是装个XP比较靠谱吧。没办法了。网上下载了一个老毛桃的XP的PE版本,写入u盘和启动选项后,插入台式机启动了PE系统,准备安装,双击Setup,出现协议什么的,输入序列号后开始复制文件,本以为成功了,结果还远。复制完文件直接程序退出了。。。U盘在PE下安装XP原版镜像的方法第一步:用U盘启动进PE,将U盘上的镜像文件复制到硬盘的非C盘,并将C盘快速格式化。第二步:用虚拟光驱加载镜像文件。注:不要关闭虚拟光驱,第三步:打开虚拟出的盘符,双击安装文件SETUP.EXE。第四步:选择安装XP。第五步 阅读全文
posted @ 2012-07-08 15:38 Dhoopu 阅读(3397) 评论(0) 推荐(0) 编辑
摘要: 原因是在page_load 事件中使用了绑定,却没有对 isPostback 做判断。必须 if(!IsPostBack){...} 去判断。 阅读全文
posted @ 2012-06-26 18:51 Dhoopu 阅读(251) 评论(0) 推荐(0) 编辑
摘要: ------解决方案--------------------------------------------------------试试把validate.js里的两行代码return $([]).add(this.currentForm.elements).filter(":input")改成return $([]).add(this.currentForm).find(":input") 阅读全文
posted @ 2012-06-18 14:59 Dhoopu 阅读(706) 评论(1) 推荐(1) 编辑
摘要: Html.BeginForm("ActionName", "ControllerName", FormMethod.Get, new { name = "FormName", id = "FormID" }) 阅读全文
posted @ 2012-06-15 18:43 Dhoopu 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 处理方法[HttpPost] public ActionResult Index(Models.User model) { if (model.UserName == "admin") { //创造票据 FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(model.UserName, false, 1); //加密票据 string tic... 阅读全文
posted @ 2012-06-15 18:42 Dhoopu 阅读(1711) 评论(0) 推荐(0) 编辑
摘要: Jquery Ajax方法传值到action<script type="text/javascript"> $(document).ready(function(){ $("#btn").click(function(){ $.ajax({ type: 'POST', url: "/Home/MyAjax", data: { val1: $("#txt1").val(), ... 阅读全文
posted @ 2012-06-15 18:38 Dhoopu 阅读(11884) 评论(1) 推荐(3) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页