博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2009年11月19日

摘要: string x = Regex.Replace(nr, @"", ""); @"" 匹配所有html标记 阅读全文

posted @ 2009-11-19 00:00 烈火123 阅读(116) 评论(0) 推荐(0) 编辑

2009年11月18日

摘要: private void button1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Message... 阅读全文

posted @ 2009-11-18 23:31 烈火123 阅读(107) 评论(0) 推荐(0) 编辑

2009年11月10日

摘要: System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); pfc.AddFontFile(@"c:/叶根友特楷简体.ttf");... 阅读全文

posted @ 2009-11-10 11:03 烈火123 阅读(124) 评论(0) 推荐(0) 编辑

摘要: 大家都知道我们如果想把网页上的文字做出比较炫的效果,便只能用POTOSHOP、FIREWORK等图像处理软件把文字做成图片来实现,因为这样才不会依赖浏览者的字体、浏览器类型等。可是在我们的WEB应用中又往往是动态的文字,我们便不能用图像处理软件来处理了,只能让WEB程序动态生成,幸运地是... 阅读全文

posted @ 2009-11-10 10:56 烈火123 阅读(113) 评论(0) 推荐(0) 编辑

2009年11月9日

摘要: private void Font_IsStyleAvailable() { Graphics graphics = CreateGraphics(); graphics.Clear(Color.White); ... 阅读全文

posted @ 2009-11-09 20:50 烈火123 阅读(135) 评论(0) 推荐(0) 编辑

2009年11月6日

摘要: SELECT TOP 20 * FROM (SELECT * FROM [tb_News] ORDER BY [NewsCount] DESC) //SELECT TOP 20 * FROM (SELECT * FROM [tb_News] ORDER BY [NewsCount] DESC... 阅读全文

posted @ 2009-11-06 15:14 烈火123 阅读(104) 评论(0) 推荐(0) 编辑

2009年10月16日

摘要: string[] namelist = null; Regex r = new Regex("/">(//b//w{3,6}//b)");//匹配3-6个字母或者汉字 MatchCollection m = r.Matches(str); nameli... 阅读全文

posted @ 2009-10-16 21:35 烈火123 阅读(309) 评论(0) 推荐(0) 编辑

2009年10月14日

摘要: 最近部署的 asp.net程序上传到服务器出问题了,动手找资料,发现是 web.config xml 的问题。 解决方法: 打开对应的web.config XML文件,看它的第一行 将encoding="utf-8"改为 encoding="gb2312" 即可 原来是由于该XML文件中存在汉字... 阅读全文

posted @ 2009-10-14 11:42 烈火123 阅读(347) 评论(0) 推荐(0) 编辑

2009年10月13日

摘要: HttpContext.Current.Request.Url.ToString() 并不可靠。 如果当前URL为 http: //localhost/search.aspx?user=http://csharp.xdowns.com&tag=%BC%BC%CA%F5 通过HttpCo... 阅读全文

posted @ 2009-10-13 18:39 烈火123 阅读(107) 评论(0) 推荐(0) 编辑

2009年10月9日

摘要: 遍历datatable的方法2009-09-08 10:02方法一: DataTable dt = dataSet.Tables[0]; for(int i = 0 ; i 0) { rp_xx.DataSource = dtb_xx; ... 阅读全文

posted @ 2009-10-09 21:54 烈火123 阅读(126) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页