随笔分类 -  C#

GridView自定义分页控件
摘要:看了这位老兄的控件,并做了点修改 http://www.cnblogs.com/acro/archive/2008/06/18/1224758.html 主要在显示方面改进了 1。加了边框 2。每次只显示10页的链接(不足10页显示实际页数的链接) 3。加了First, Last 外观如下: 代码:修改了RenderContents方法 protected override void Re... 阅读全文

posted @ 2008-09-19 15:49 Rose2007 阅读(629) 评论(0) 推荐(0)

安装DNN4.6.2 source code出现的问题
摘要:下载了DNN4.6.2源码,然后打开DotNetNuke.sln运行,总是报错,后来把release.config改成web.config问题才解决。 Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Pl... 阅读全文

posted @ 2007-10-23 10:32 Rose2007 阅读(328) 评论(2) 推荐(0)

DNN 模块里导出gridview的内容到excel
摘要:在DNN模块里放了一个gridview 和一个button,然后想点击这个button导出gridview里的内容到一个excel文件, 导出的代码来自网上 protected void cmdExport_Click(object sender, EventArgs e) { Response.Clear(); Response.Buffer = tr... 阅读全文

posted @ 2007-10-09 16:56 Rose2007 阅读(267) 评论(0) 推荐(0)

asp.net 显示html文本
摘要:有段html文本存在了数据库,取出后放在变量description, 例如<p>testxxx</p> ,如果要显示在asp.net页面的话,用Label就可以了,代码(C#): lblDesc.Text = Server.HtmlDecode(description); 结果显示为 testxxx, 而不是testxxx. 阅读全文

posted @ 2007-09-19 18:00 Rose2007 阅读(1577) 评论(0) 推荐(0)