这是我10年初的MVC学习笔记:呵呵,最近两天看了看MVC,因为之前在JAVA中看过,所以决定在自己的Test pro.中尝试了,呵呵,那个汗啊,还是不行,整整折腾了一天终于完成了第一步,呵呵,下面是我在尝试的过程中遇到的问题及解决方法:1、Html.ActionLink不能用,缺少引用,呵呵,折腾了半天,原来是因为我建了几个usercontrol,因为不是mvc的view,所以当然不支持mvc的这种属性了,这个时候我们可以做一些欺骗式的链接。比如:你要链接的页面是<a href="..\Views\TestControl\Test.aspx">,我们可以这样写 Read More
posted @ 2011-03-29 23:05 AriLee Views(271) Comments(0) Diggs(0) Edit
配置文件:<?xml version="1.0"?><configuration> <configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, Pu Read More
posted @ 2011-03-29 22:45 AriLee Views(557) Comments(0) Diggs(0) Edit
<script> var kindType=new Array()</script><% '创建材料类别下拉框sql2="select * from material_kind_t where isvalid='1'"set rs2=server.createobject("ADODB.Recordset")rs2.open sql2,conn,1,1typeLen=rs2.recordcount'''response.Write(typeLen-1)do while not Read More
posted @ 2011-03-29 22:39 AriLee Views(277) Comments(0) Diggs(0) Edit
Javascript中最常用的55个经典技巧 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table2. <body onselectstart="return false"> 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="retur Read More
posted @ 2011-03-29 22:36 AriLee Views(230) Comments(0) Diggs(0) Edit
本讲要点:l Hibernate数据查询l 利用关联关系操纵对象l Hibernate事务l Hibernate的Cache管理9.1 Hibernate数据查询数据查询与检索是Hibernate的一个亮点。Hibernate的数据查询方式主要有3种,它们是:l Hibernate Query Language(HQL)l Criteria Queryl Native SQL下面对这3种查询方式分别进行讲解。9.1.1 Hibernate Query Language(HQL)Hibernate Query Language(HQL)提供了十分强大的功能,推荐大家使用这种查询方式。HQL具有与 Read More
posted @ 2011-03-29 22:32 AriLee Views(5516) Comments(0) Diggs(0) Edit
function delete_check(page,plandepartment_s,PlanCode_s,PlanCodeID,Planmonth_s,Planyear_S,Plantype_s,plandepartment,PlanYear,Planmonth,plPlanType,PlanDate){var op=document.search_listif(PlanCodeID!=""){ str=""; str='您确定要删除:'+'\n'; str=str+'计划编号为:'+'\n&# Read More
posted @ 2011-03-29 22:30 AriLee Views(282) Comments(0) Diggs(0) Edit
一、注册服务时出现:指定的服务已标记为“删除”,服务显示为“禁止” 关闭已打开的“服务”窗体,再进行注册。二、Windows服务启动后又自动停止 一般情况是程序中函数的问题,检查各个函数,尤其是连接数据库的路径,增加catch,输出日志进行查看三、InstallUtil 服务名.exe出现异常:服务已经存在 删除服务命令:InstallUtil /u e:/.../服务名.exe InstallUtil 服务名.exe重新安装服务。 首先必须要先启动服务:Windows Installer四、注册服务时出现登陆窗体,在serviceProcessInstaller1属性里,将account属性 Read More
posted @ 2011-03-29 22:29 AriLee Views(410) Comments(0) Diggs(0) Edit
1、org.apache.commons.dbcp.basicdatasource not found 缺少包:commons-dbcp.jar,commons-pool.jar 在spring-framework-2.0.1-with-dependencies\spring-framework-2.0.1\lib\jakarta-commons目录下导入即可。2、项目myeclipse 的add and remove project deployments不能执行:需要通过Add重新添加jdk,这里需要另起一个名称,jdk5.x,否则会出现错误。3、hibernate.cfg.xml,app Read More
posted @ 2011-03-29 22:28 AriLee Views(692) Comments(0) Diggs(0) Edit
style:body { font-family: "arial, helvetica, sans-serif,"; font-size: 9pt; margin: 0px;scrollbar-face-color:#efefe7; scrollbar-highlight-color:#ffffff; scrollbar-3dlight-color:#a5a5a5; scrollbar-darkshadow-color:#a5a5a5; scrollbar-shadow-color:#d6d6ce; scrollbar-arrow-color:#003184; scrol Read More
posted @ 2011-03-29 22:26 AriLee Views(351) Comments(0) Diggs(0) Edit
-- Enable CLR Integrationsp_configure 'clr enable', 1GORECONFIGUREGOUSE wgdbGO-- Set TRUSTWORTHY database's option ONALTER DATABASE wgdb SET TRUSTWORTHY ONGO/* error--error-------------------------------------------------The database owner SID recorded in the master database differs fro Read More
posted @ 2011-03-29 22:24 AriLee Views(421) Comments(0) Diggs(0) Edit
1、异步线程中的参数: private void watch_Created(object sender, FileSystemEventArgs e) { ParameterizedThreadStart myParameterizedThreadDelegate = new ParameterizedThreadStart(ReadStart_Fun); Thread myThread = new Thread(myParameterizedThreadDelegate); object o = e.FullPath; myThread.Start(o); } private void R Read More
posted @ 2011-03-29 22:18 AriLee Views(317) Comments(0) Diggs(0) Edit
1、用字符串分隔:usingSystem.Text.RegularExpressions;stringstr="aaajsbbbjsccc";string[]sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase);foreach(stringiinsArray)Response.Write(i.ToString()+"<br>");输出结果:aaabbbccc2、用多个字符来分隔:stringstr="aaajbbbscccjdddseee";strin Read More
posted @ 2011-03-29 22:17 AriLee Views(192) Comments(0) Diggs(0) Edit
js与后台交互实例 实例1(调用后台变量):js:var bb = '<%=sql %>';var cc="<%=sql %>";cs:public string sql = "test";实例2(调用后台带参函数):cs: public string Method(string name) { return name; }js:<script type="text/javascript"> var id = "aabb"; var s = ' <% Read More
posted @ 2011-03-29 22:16 AriLee Views(369) Comments(0) Diggs(0) Edit
.bat file:set MySQL_HOME=C:\Program Files\MySQL\MySQL Server 6.0set PATH=%MySQL_HOME%\bin;%PATH%mysql --host=192.168.0.196 --port=3308 --user=scott --password=tiger --default-character-set=utf8 run<mysql.sqlpausemysql.sql:call Test_SP();INSERT INTO `run`.`mylog`(log_datetime,log_thread,log_level, Read More
posted @ 2011-03-29 22:15 AriLee Views(175) Comments(0) Diggs(0) Edit