03 2011 档案

摘要://_url为跳转到下一页的Url,pageIndex为响应的页码,pageCount为计算后的总页数//count为列表的总记录数,从数据库查询得到,下面语句用来计算总页数if(count>0)pageCount=count/pageSize+(count%pageSize!=0?1:0);publicstaticstring_GetNavBarSelectHtml(string_url,intpageIndex,intpageCount){if(pageCount<=1)returnstring.Empty;pageIndex=pageIndex+1;//计算显示页码intx= 阅读全文
posted @ 2011-03-21 16:21 aisoon99 阅读(492) 评论(0) 推荐(0)
摘要:Response.WriteLine("<table>");if(datalist!=null){intcount=datalist.Count;inti=0; while(i<datalist.Count){Response.WriteLine("<tr>");for(intj=0;j<6;j++){if(count>0)Response.WriteLine("<tdalign='center'></td>");i++;count--;}Respons 阅读全文
posted @ 2011-03-03 13:47 aisoon99 阅读(208) 评论(0) 推荐(0)
摘要:在框架中,我将组织成的 HTML 代码,最后将其填充至上层文档的一个元素中。按照一般的写法,我们需要用到类似如下的语句:1.window.parent.document.getElementById("myEle").innerHTML = html;使用 jQuery ,写法如下:1.$("#myEle", window.parent.document).html(html); $('#myEle, parent.document).html(str);即指明了是在 window.parent.document 中查找 id=myEle 的元素 阅读全文
posted @ 2011-03-01 14:14 aisoon99 阅读(635) 评论(0) 推荐(0)