DoubleM

我的工作是:需求分析、用户体验、项目管理、类设计、技术方向选择、解决复杂的技术问题。 这些领域的事情相对比较轻松,所以也经常有闲写写代码,不过多以折磨自己的大脑为目标,兴趣使然。
  新随笔  :: 订阅 订阅  :: 管理

2011年8月10日

摘要: 禁止网页复制的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; cha 阅读全文

posted @ 2011-08-10 14:56 DoubleMM 阅读(341) 评论(0) 推荐(1) 编辑

摘要: 在GridView控件中,每行记录内会放置一个铵钮,当用户点击这个铵钮时,获取当笔记录的主键值。可看演示(是一个gif动画,重新播放尝试刷新网页):实现这个功能,你需要为GridView控件设置DataKeyNames属性和OnRowCreated事件。View Code:View Code <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" DataKeyNames="MediaTypeId" OnRowCreate 阅读全文

posted @ 2011-08-10 14:48 DoubleMM 阅读(992) 评论(1) 推荐(0) 编辑

摘要: 1、求允许输入英文的正则(有英文的基础上可以包括空格,以及数字) 即: 是单独输数字不成立 单独输空格也不成立 单独输字母是成立的 数字 + 空格不成立 字母 + (空格 或 数字)任意一个或者一起都成立代码: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.IO;namespace sxLdfang{ class Program { static void Main(string 阅读全文

posted @ 2011-08-10 10:45 DoubleMM 阅读(290) 评论(0) 推荐(0) 编辑