摘要: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" CssClass="tablecss"> <Columns> <asp:TemplateField HeaderText="编号" HeaderStyle-CssClass="aaa" ItemStyle-CssClass="bbb"> <ItemTemplate> 阅读全文
posted @ 2011-12-20 16:05 colyn 阅读(223) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将指定字符串按指定长度进行剪切, /// </summary> /// <param name= "oldStr "> 需要截断的字符串 </param> /// <param name= "maxLength "> 字符串的最大长度 </param> /// <param name= "endWith "> 超过长度的后缀 </param> /// <returns> 如果超过长度,返回截断 阅读全文
posted @ 2011-12-20 15:30 colyn 阅读(279) 评论(0) 推荐(0) 编辑
摘要: URL 重写是截取传入 Web 请求并自动将请求重定向到其他 URL 的过程。 比如浏览器发来请求hostname/101.aspx ,服务器自动将这个请求中定向为http://hostname/list.aspx?id=101。url重写的优点在于: 缩短url,隐藏实际路径提高安全性 易于用户记忆和键入。 易于被搜索引擎收录二 实现url重写的基本方法 下载MS的URLRewriter.dll,放到你的web程序的bin下下载地址1:http://www.rickel.cn/uploads/DevTools/MSDNURLRewriting.msi下载地址2:download.micro. 阅读全文
posted @ 2011-12-20 11:21 colyn 阅读(260) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.Data.SqlClient;using System.Data;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.Data.SqlClient;using S. 阅读全文
posted @ 2011-12-20 10:32 colyn 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 1、源错误:[没有相关的源行]源文件: c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config 行: 0-------------------------------------------------------------------------------- 版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0解决方法:重装iis 在命令行输入:aspnet_regiis -r2、Server Application Unavailable The 阅读全文
posted @ 2011-12-20 09:20 colyn 阅读(161) 评论(0) 推荐(0) 编辑