yuezhonghu

悠然现南山...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年3月22日

摘要: case 语句使用:select case when len(SM_PIC)>0 or len(SM_note)>0 then '已编辑' else '未编辑' end as doit ,case SM_SLQK when 1 then '未受理' when 2 then '已受理' when 0 then '受理中' else '受理中' end as SLQK,case when len(... 阅读全文

posted @ 2008-03-22 14:12 .狐狸血. 阅读(244) 评论(0) 推荐(0) 编辑

2008年3月11日

摘要: 比较标准的分页显示格式和属性设置: 绑定分页数据 绑定数据表互动 /// /// 分页控件 /// private void BoundToAspNetPager(Wuqi.Webdiyer.AspNetPager NetPager1,int states) { ArrayList ParamList = new ArrayList(); ... 阅读全文

posted @ 2008-03-11 13:39 .狐狸血. 阅读(14829) 评论(0) 推荐(0) 编辑

2008年2月23日

摘要: //导出Excel 代码 Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls"); Response.ContentType = "application/excel"; //修... 阅读全文

posted @ 2008-02-23 13:59 .狐狸血. 阅读(178) 评论(0) 推荐(0) 编辑

摘要: function getitemname(o) { //alert(str); var obj=document.getElementById("TD_Name"); document.getElementById("TD_Name").innerHTML='媒体名称';} } 注意:JS中的TD.innerHTML 和 .NET后台的... 阅读全文

posted @ 2008-02-23 12:42 .狐狸血. 阅读(103) 评论(0) 推荐(0) 编辑

2008年2月18日

摘要: 服务器无法在发送 HTTP 标头时会对这些信息加密;此时修改cookie或输出缓存时将会出错;注:未知错误! 所以只要不同时跳转和修改cookie、输出缓存,就能解决问题;当然,也可以在webconfig配置中修改cacheRolesInCookie属性值设置成false就行了。 阅读全文

posted @ 2008-02-18 17:33 .狐狸血. 阅读(5751) 评论(1) 推荐(0) 编辑

2008年1月24日

摘要: 记忆中这个东西繁琐,但是好用;会出现提交后不触发程序的错误,以下为解决方法 前台: ... 阅读全文

posted @ 2008-01-24 17:31 .狐狸血. 阅读(433) 评论(0) 推荐(0) 编辑

摘要: 网上找的,好使。这里首先感谢万能的网络 前台: TreeView选择checkBox时触发函数 后台: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) ... 阅读全文

posted @ 2008-01-24 16:38 .狐狸血. 阅读(3295) 评论(2) 推荐(1) 编辑

2008年1月18日

摘要: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseout", "th... 阅读全文

posted @ 2008-01-18 16:52 .狐狸血. 阅读(162) 评论(0) 推荐(0) 编辑

2008年1月16日

摘要: English Version: http://dflying.dflying.net/1/archive/103_atlas_updatepanel_tips_and_faqs.html 好多开发人员将会从UpdatePanel控件开始慢慢接触Atlas。UpdatePanel功能强大并且使用简单,同时也拉近了我们和Atlas的距离。 我曾在此发表了一个对UpdatePanel的简要介绍(... 阅读全文

posted @ 2008-01-16 10:11 .狐狸血. 阅读(110) 评论(0) 推荐(0) 编辑

2008年1月15日

摘要: GridView: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("on... 阅读全文

posted @ 2008-01-15 14:41 .狐狸血. 阅读(158) 评论(0) 推荐(0) 编辑