posted @ 2009-11-19 00:00 慧神星 阅读(121) 评论(0) 推荐(0)
摘要:
string x = Regex.Replace(nr, @"", ""); @"" 匹配所有html标记 阅读全文
摘要:
private void button1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Message... 阅读全文
posted @ 2009-11-18 23:31 慧神星 阅读(115) 评论(0) 推荐(0)
摘要:
System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); pfc.AddFontFile(@"c:/叶根友特楷简体.ttf");... 阅读全文
posted @ 2009-11-10 11:03 慧神星 阅读(135) 评论(0) 推荐(0)
摘要:
大家都知道我们如果想把网页上的文字做出比较炫的效果,便只能用POTOSHOP、FIREWORK等图像处理软件把文字做成图片来实现,因为这样才不会依赖浏览者的字体、浏览器类型等。可是在我们的WEB应用中又往往是动态的文字,我们便不能用图像处理软件来处理了,只能让WEB程序动态生成,幸运地是... 阅读全文
posted @ 2009-11-10 10:56 慧神星 阅读(122) 评论(0) 推荐(0)
摘要:
private void Font_IsStyleAvailable() { Graphics graphics = CreateGraphics(); graphics.Clear(Color.White); ... 阅读全文
posted @ 2009-11-09 20:50 慧神星 阅读(149) 评论(0) 推荐(0)
摘要:
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 慧神星 阅读(110) 评论(0) 推荐(0)
摘要:
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 慧神星 阅读(321) 评论(0) 推荐(0)
摘要:
最近部署的 asp.net程序上传到服务器出问题了,动手找资料,发现是 web.config xml 的问题。 解决方法: 打开对应的web.config XML文件,看它的第一行 将encoding="utf-8"改为 encoding="gb2312" 即可 原来是由于该XML文件中存在汉字... 阅读全文
posted @ 2009-10-14 11:42 慧神星 阅读(418) 评论(0) 推荐(0)
摘要:
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 慧神星 阅读(112) 评论(0) 推荐(0)
摘要:
遍历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 慧神星 阅读(139) 评论(0) 推荐(0)
浙公网安备 33010602011771号