摘要: 解决方法:到C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727中找,有个工具叫 aspnet_regiis.exe,运行方法如下:1.开始-->运行-->输入cmd,运行2.DOS窗口打开以后,在DOS窗口内进入上面的文件夹3.输入 aspnet_regiis.exe -i -enable 或者 aspnet_regiis -ga aspnet ps:特别要注意安装顺序,先装IIS,然后装.net框架 如果一个系统上安装多个vs,建议都各自运行Visual Studio 命令提示 进行修改 阅读全文
posted @ 2013-08-08 11:51 年华° 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 主要问题是出在:JQuery会把Dialog的元素append到Body里面,而不是form里面。这就导致了Dialog模板内表单全部失效。解决方法是增加一行代码即可:dlg.parent().appendTo(jQuery("form:first"));也就是修改开始部分创建对话框的脚本即可:Js代码<scriptlanguage="javascript">$(function(){vardlg=jQuery("#dd").dialog({draggable:true,resizable:true,closed:true 阅读全文
posted @ 2013-05-07 13:43 年华° 阅读(313) 评论(0) 推荐(0) 编辑
摘要: js:<script type="text/javascript"> function test() { var isCheck = document.getElementById('checkbox').checked; if (isCheck) { //Page_ClientValidate('submit'),这里有不同的ValidGroup,所以Page_ClientValidate传递是指定的GroupName if (Page_ClientValidate('submit')) { alert(' 阅读全文
posted @ 2013-03-28 13:33 年华° 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: var date = new Date();var y = date.getFullYear();//兼容火狐var m = date.getMonth();var d = date.getDate();var day = date.getDay(); var year=new Date().getYear();year = (year < 1900) ? (1900 + year) : year;现在时间:<script type="text/javascript" language="javascript">today=new Da 阅读全文
posted @ 2013-03-25 10:28 年华° 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 表A中存在ID重复三次以上的记录,完整的查询语句如下:select * from(select count(ID) as count from table group by ID)T where T.count>3-表A中存在ID重复三次以上的记录,完整的查询语句如下:select * from(select count(ID) as count from table group by ID)T where T.count>3sc 按升序排列desc 按降序排列下列语句部分是Mssql语句,不可以在access中使用。SQL分类:DDL—数据定义语言(Create,Alter,Dr 阅读全文
posted @ 2013-03-01 15:12 年华° 阅读(191) 评论(0) 推荐(0) 编辑
摘要: mysql:select * from table1 where 1=1 limit 10sql server:读取前10条:select top (10) * from table1 where 1=1读取后10条:select top (10) * from table1 order by id desc在sqlserver里面,如何读取按照某个排序,第5到10这五个记录select top 6 * from table where id not in(select top 4 id from table)oracle:select * from table1 where rownum&l 阅读全文
posted @ 2013-03-01 15:05 年华° 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 表结构stu_id varchar2(8)stu_na varchar2(20)stu_sco numberstu_class varchar2(4)请用SQL语句完成如下查询:①,求出各班的及格率(成绩>=60)②,求出个班的优秀率(成绩>=80)相关脚本SELECT STU_CLASS,ROUND(COUNT(CASEWHEN T.STU_SCO >= 60 THEN1ELSENULLEND) * 100 / COUNT(*),2) || ‘%’FROM TEST_TU TGROUP BY STU_CLASS 阅读全文
posted @ 2013-03-01 15:00 年华° 阅读(4197) 评论(0) 推荐(0) 编辑
摘要: 设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。基本模式 设计模式分为三种类型,共23类。创建型模式:单例模式、抽象工厂模式、建造者模式、工厂模式、原型模式。结构型模式:适配器模式、桥接模式、装饰模式、组合模式、外观模式、享元模式、代理模式。行为型模式:模版方法模式、命令模式、迭代器模式、观察者模式、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、职责链模式、访问者模式。页面传值的方式及其优缺点?Session,Application,Cookies,Req 阅读全文
posted @ 2013-03-01 14:55 年华° 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 返回上一页protectedvoidButtonGoBack_Click(objectsender,EventArgse){this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"this","<script>history.go(-2);</script>");} 阅读全文
posted @ 2012-11-02 16:34 年华° 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1.div居中显示 div{ margin: auto; position: relative; }2.IE6支持透明*html #image-style { background-image: none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="fil ename.png", sizingMethod="scale"); } 阅读全文
posted @ 2012-09-25 14:38 年华° 阅读(102) 评论(0) 推荐(0) 编辑