翱翔.Net

释放.Net的力量
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2005年3月4日

摘要: 安装后运行出错创建Application事件在事件查看器里一看描述:System.Data.SqlClient.SqlException: 无法打开登录 'petshop' 中请求的数据库。登录失败。用户 'NT AUTHORITY\NETWORK SERVICE' 登录失败。Google得解决办法! 第一步:把'NT AUTHORITY\NETWORK SERVICE' 添加到Administ... 阅读全文

posted @ 2005-03-04 16:25 Hover 阅读(3067) 评论(0) 推荐(0) 编辑

2005年2月28日

摘要: usingSystem; usingSystem.Web.UI; usingSystem.Web.UI.WebControls; usingSystem.ComponentModel; namespaceHover.WebControls { /**//// ///FlashLabel的摘要说明。 ///Description:文字闪烁的Label... 阅读全文

posted @ 2005-02-28 08:59 Hover 阅读(4185) 评论(8) 推荐(0) 编辑

2005年2月4日

摘要: 被过滤的字符列表可以存在数据库里。文本文件等此例是放在文本文件中为Filter.txt 内容为卑鄙|干|抄|超|乳|摸|玩|吻|倒霉|抠|骂|鳖|独|彪|婊|姬|阴|屁|臀|搂 private void FilterText() { string txtPath=Request.PhysicalApplicationPath+@"modules\guestbo... 阅读全文

posted @ 2005-02-04 15:23 Hover 阅读(4365) 评论(2) 推荐(0) 编辑

2005年2月3日

摘要: static void Main() { // get the name of our process string proc=Process.GetCurrentProcess().ProcessName; // get the list of all processes by that name Process[] processes=Process.GetProce... 阅读全文

posted @ 2005-02-03 17:08 Hover 阅读(3328) 评论(4) 推荐(0) 编辑

摘要: using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;//using System.DirectoryServices;using System.Diagnostics;using Sys... 阅读全文

posted @ 2005-02-03 16:15 Hover 阅读(2869) 评论(1) 推荐(0) 编辑

2005年1月29日

摘要: 签于有人要此代码。上传提供下载!不保证是原版的哦。但可以正常运行!http://www.cnblogs.com/Files/Hover/ThePhile.rar 阅读全文

posted @ 2005-01-29 09:38 Hover 阅读(2304) 评论(5) 推荐(0) 编辑

2005年1月17日

摘要: 转载请注明出处--翱翔.Net Blog Http://cnblogs.com/HoverNews_Aclass表---大类表ClassID Int 4ClassName varchar 50News_Anclass表---小类表NclassID int 4Nclass varchar 50ClassID int 4 ---------------------------------aspx---... 阅读全文

posted @ 2005-01-17 09:29 Hover 阅读(12684) 评论(17) 推荐(0) 编辑

2004年12月22日

摘要: ASP.NET 中内置的用户验证支持的功能非常强大,它能够自动地在Context对象中生成一个名为User的属性.该属性能够让我们访问各种信息,包括用户是否已经验证。验证用户的类型,甚至还有用户名,不管我们是使用基于表单的验证还是WINDOWS验证,都可以使用由Context对象表示的当前的HttpContext实例中的User对象 .Net FrameWork中提供的Context.User对象... 阅读全文

posted @ 2004-12-22 14:03 Hover 阅读(6326) 评论(9) 推荐(0) 编辑

2004年11月11日

摘要: protectedvoidLogEvent(stringmessage,EventLogEntryTypeentryType){if(!EventLog.SourceExists("ThePhile.COM")){EventLog.CreateEventSource("ThePhile.COM","Application");... 阅读全文

posted @ 2004-11-11 16:25 Hover 阅读(1130) 评论(2) 推荐(0) 编辑

2004年11月7日

摘要: 解决页面包含两个用户控制且都有Form提交的时按钮验证事件混乱 接上篇。我把验证代码,简单的验证为空放在ascx里了。按钮的单击事键也对应了checkForm()了。 然后把ascx放到aspx里。运行。根本不行。查看源码得知.TextBox的ID,前面加上了QuickForumLogin为ascx的名称。放到aspx里后自动后面加个1.这样js无法找到Form的txtUs... 阅读全文

posted @ 2004-11-07 22:33 Hover 阅读(1839) 评论(3) 推荐(0) 编辑