asp.net ȨÏÞϵͳÉè¼Æ
ÃüÃû¿Õ¼ä Access
Àࣺ
User
ÊôÐÔ£ºLoginID,UserName,Password,Remark
Role
ÊôÐÔ£ºRoleName Remark(±¸×¢ÐÅÏ¢)
AccessItem
ÊôÐÔ£ºName,Text,Remark
PermissionManager
ÊôÐÔ£º
·½·¨£ºvoid AddUser(string loginID,string password, string remark );void AddRole();Void AddItem(string name,string text,string remark);void ChangPassword(string loginID,string oldPassword);
void DeleteUser(string loginID); void DeleteRole(string RoleName);void DeleteItem(string name);
bool VerifyAccess(string loginID,string accessItemName);User[] GetUsersByRole(string roleName);
Rolep[] GetRolesByUser(string loginID);AccessItem[] GetItemsByRole(string roleName);
AccessItem[] GetItemsByUser(string loginId);void AddUserInRole(string loginID,string roleName);
void RemoveUserfromRole(string loginID,string roleName);
void AddItemsInRole(string itemName,string roleName);void RoveItemfromRole(string itemName,string roleName)
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
ÔÚasp.netÀïʹÓÃcom×é¼þµ¼³öexcelºó×ÜÊÇ»áÓÐÒ»¸öEXCEL.EXE½ø³Ì´æÔÚ£¬Õ¼¾Ý×Å30¶àMµÄÄڴ棬Ñо¿Á˺þÃÊÔÁËÍøÉϵĺܶà°ì·¨¶¼Ã»Óнâ¾ö¡£½ñÌìÐÄÇé±È½Ï·ÅËÉ£¬½Ó×Å´ÓÍøÉÏËÑÁËһϣ¬¿´µ½Ò»ÆªÌû×ÓÈçÏ£º
ÔÚDOT NETÖе÷ÓÃExcelºó£¬Excel½ø³ÌµÄ²¢Î´ÖÕÖ¹ÎÊÌâµÄ½â¾ö°ì·¨ ÊÕ²Ø
ÔÚDOT NETÖе÷ÓÃExcelºó£¬Excel½ø³ÌµÄ²¢Î´ÖÕÖ¹ÎÊÌâ ......
1.Ìí¼Ójsº¯Êý
function TextBoxEntered(buttton) {
if (event.which || event.keyCode) {
if ((event.which == 13) || (event.keyCode == 13)) {
document.getElementById(button).click();
return false;
}
......
1. C#ÓïÑÔ·½Ãæ
1.1 À¬»ø»ØÊÕ
¡¡À¬»ø»ØÊÕ½â·ÅÁËÊÖ¹¤¹ÜÀí¶ÔÏóµÄ¹¤×÷£¬Ìá¸ßÁ˳ÌÐòµÄ½¡×³ÐÔ£¬µ«¸±×÷ÓþÍÊdzÌÐò´úÂë¿ÉÄܶÔÓÚ¶ÔÏó´´½¨±äµÃËæÒâ¡£
¡¡1.1.1 ±ÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨
¡¡ÓÉÓÚÀ¬»ø»ØÊյĴú¼Û½Ï¸ß£¬ËùÒÔC#³ÌÐò¿ª·¢Òª×ñѵÄÒ»¸ö»ù±¾ÔÔò¾ÍÊDZÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨¡£ÒÔÏÂÁоÙһЩ³£¼ûµÄÇéÐΡ£
¡¡1.1.1.1 ±ÜÃâÑ»·´´½¨¶ÔÏ ......