摘要:
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr... 阅读全文
摘要:
效果: 思路: 先动态生成n个div,隐藏不显示,然后使用javascript中的 onmouseover,onmouseout等事件显示或隐藏div例子:left ascx.cs namespace MySite.Controls{ using System; using System.Data; using System.Drawing; using System.Web; u... 阅读全文
摘要:
在XXXX上点击右键,点击“共享和安全”,点击“安全”标签,添加用户,在弹出窗口中点击高级,点击立即查找,找到“EVERYONE”确定,添加。 阅读全文
摘要:
Similarities1.Both contain code to be executed2. Both can be used to hide implementation details3. Both can be virtual, abstract, or override Differences1. Syntactic – properties do not use parenthese... 阅读全文
摘要:
using Methods 1.Reduce clarity 2.Increase risk of errors,both syntactic and semanticuisng Operator makes expression cleatExample: MyIntVar1=MyIntVar2+MyIntVar3 (Operator)... 阅读全文
摘要:
Struct Constructor RestrictionsAlthough the syntax for struct and class constructors is the same, there are someadditional restrictions that apply to struct constructors:1. The compiler always create... 阅读全文
摘要:
在任何系统中,权限设计是最基础的东西,本文给出一个基于角色的权限设计的循序渐进的设计方案。 在权限系统中,功能(权限)是最小的单位,比如起草新闻、编辑新闻、审核新闻、删除新闻等,而角色是一类功能的集合,比如新闻编辑这个角色,他可能有起草新闻、编辑新闻等功能集合,而责任编辑他可能就有更多的权限,比如除了新闻编辑的功能,还有审核新闻、删除新闻等功能,给张三赋予新闻编辑的角色(其实我更愿意说把张三... 阅读全文
摘要:
Polymorphism literally means many forms or many shapes. It is the concept thata method declared in a base class can be implemented in many different ways inthe different derived classes. 阅读全文
摘要:
There are five different kinds of types in C#:classstructinterfaceenumdelegate You can nest all five of these inside a class or a struct. Note You cannot nest a type inside an interface, an enum, ... 阅读全文