昨天看了黑客III

不错。

安装开心汉化版.Text失败

发不了随笔,不知道为什么……

这个看起来不错

About FxCop

FxCop is a code analysis tool that checks .NET managed code assemblies for conformance to the Microsoft .NET Framework Design Guidelines. It uses reflection, MSIL parsing, and callgraph analysis to inspect assemblies for more than 200 defects in the following areas: naming conventions, library design, localization, security, and performance (see Rule Topics). FxCop includes both GUI and command line versions of the tool, as well as an SDK to create your own rules.

Download FxCop 1.23

FxCop must be running under the same version of the .NET Framework as that used to compile the assemblies it analyzes.
Please select the correct version of FxCop.

兵器谱之Application Block

其实有很多工具被我们忽略了。例如这个早已出现的Application Block,
是微软出的一个.NET Helper工具包,包括一个数据库工具和一个异常处理工具。

#数据库工具:执行SQL命令、存储过程并返回DataReader或DataSet或不返回;
#异常处理工具:处理、跟踪、记录异常

学术=不学无术?

今天参加了一个所谓的“学术研讨会”,结果搞得自己很郁闷。有些演讲人,连自己都没搞清楚的问题,怎么好意思拿到大庭广众之下现眼?!
难道真是学术就是不学无术?郁闷ing…>

About IBS Portal

IBS Portal真是经典的范例,实在值得好好研究。看看这两个Method:

        //*********************************************************************
        //
        // PortalSecurity.IsInRole() Method
        //
        // The IsInRole method enables developers to easily check the role
        // status of the current browser client.
        //
        //*********************************************************************
        public static bool IsInRole(String role) {
            return HttpContext.Current.User.IsInRole(role);
        }
        //*********************************************************************
        //
        // PortalSecurity.IsInRoles() Method
        //
        // The IsInRoles method enables developers to easily check the role
        // status of the current browser client against an array of roles
        //
        //*********************************************************************
        public static bool IsInRoles(String roles) {
            HttpContext context = HttpContext.Current;
            foreach (String role in roles.Split( new char[] {';'} )) {
            
                if (role != "" && role != null && ((role == "All Users") || (context.User.IsInRole(role)))) {
                    return true;
                }
            }
            return false;
        }

Blog不是什么?

Blog不是方兴东认为的“反抗权威媒体”的媒体;

Blog不是“上了一个好厕所,心情大靓”;

Blog不是精英风云际会之地;

Blog是什么?我目前认为是一种信息发布方式,但并无透彻、清晰的概念。管它是什么呢,反正,我,blogging。

如何在ASP.NET中获得JavaScript弹出窗口Yes/No值

The sample code?is on the most frequently asked query on “How to get the confirmation of Yes/No from a javascript pop up and display the value on the page using ASP.NET”?

  • Create a webpage main.aspx
  • Drag and drop a?hidden control and <asp:button> control on the web form.

Step 1. main.aspx.vb

Write the following code on page load event

Button1.Attributes.Add(“onclick”, “getMessage()”)

Step 2.In main.aspx

Add the client side-script block

<SCRIPT language=javascript>
 function getMessage()
 {
 var ans;
 ans=window.confirm('Is it your confirmation.....?');
 //alert (ans);                      
 if (ans==true)
  {
    //alert('Yes');
    document.Form1.hdnbox.value='Yes';
   }
 else
 {
    //alert('No');
    document.Form1.hdnbox.value='No';}

 }
</SCRIPT>

Step 3. main.aspx.vb

To display the value of the value selected by the user in the pop up write the following code

Response.Write(Request.Form(“hdnbox”))