2012年7月24日

摘要: javascript接收get方式的参数:<script languge=javascript> alert(window.location.pathname); --返回 /test/test.htm alert(window.location.search); --返回 ?id=1 alert(window.location.href); --返回 http://localhost/test/test.htm?id=1 </script> --------------------------------location对象 含有当前URL的信息. 属性 href 整 阅读全文
posted @ 2012-07-24 17:04 滴墨成伤 阅读(536) 评论(0) 推荐(0)
 
摘要: JS跳转页面参考代码第一种: [javascript] view plaincopyprint?<scriptlanguage="javascript"type="text/javascript">window.location.href="login.jsp?backurl="+window.location.href;</script><script language="javascript" type="text/javascript">window.l 阅读全文
posted @ 2012-07-24 16:44 滴墨成伤 阅读(169) 评论(0) 推荐(0)
 
摘要: 1.先把Ajax.dll添加引用到项目中,在项目上右击,菜单上有个[添加引用],然后一步一步把那个.DLL文件添加进来,之后你会在项目的引用中看到那个Ajax.dll就是添加成功了 2.修改Web.config。在 <system.web> 元素中添加以下代码。这里的Ajax.dll和Ajaxpro.dll引用方法是不一样的,一定要注意 <configuration> <system.web> <httpHandlers> <!-- Ajax.dll的配置文件写法为,我下载到的是这个 --> <add verb="PO 阅读全文
posted @ 2012-07-24 16:00 滴墨成伤 阅读(206) 评论(0) 推荐(0)
 
摘要: 目的:在GroupDetail表里查询所有不重复的年级和科目,并保存在ArrayList里在数据访问层internal class GroupDetailInfoDal : DaoImplements<int, GroupDetail> { internal GroupDetailInfoDal() : base("userCenter") { } internal ArrayList GetGrade() { ArrayList arrayGrade = new ArrayList(); var query = (from x in this.Table wh 阅读全文
posted @ 2012-07-24 11:25 滴墨成伤 阅读(230) 评论(0) 推荐(0)