Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net ÀûÓãףͣÉʵÏֹػúÖØÆô

ÎÒÕâÊÇÄÃÀ´±ðÈËÓõģ¬ÎªÁË·½±ãÒÔºó×Ô¼º¿´°É£¬¿´¶Ô´ó¼ÒÓаïæÂð
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace AppBLL
{
public class ShutDown
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
internal struct ToKprivlLuid
{
public int Count;
public long Luid;
public int Attr;
}
[DllImport("kernel32.dll", ExactSpelling = true)]
internal static extern IntPtr GetCurrentProcess();
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool OpenProcessToken(IntPtr h, int acc, ref IntPtr phtok);
[DllImport("advapi32.dll", SetLastError = true)]
internal static extern bool LookupPrivilegeValue(string host, string name, ref long pluid);
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool
AdjustTokenPrivileges(IntPtr htok, bool disall, ref ToKprivlLuid newst, int len, IntPtr prev, IntPtr relen);
[DllImport("user32.dll", ExactSpelling = true, SetLastError = true)]
internal static extern bool ExitWindowsEx(int flg, int rea);
//C#¹Ø»ú´úÂë
// ÒÔ϶¨ÒåÁËÔÚµ÷ÓÃWinAPIʱÐèÒªµÄ³£Êý¡£
//ÕâЩ³£Êýͨ³£¿ÉÒÔ´ÓPlatform SDKµÄ°üº¬Îļþ£¨Í·Îļþ£©ÖÐÕÒµ½
internal const int SE_PRIVILEGE_ENABLED = 0x00000002;
internal const int TOKEN_QUERY = 0x00000008;
internal const int TOKEN_ADJUST_PRIVILEGES = 0x00000020;
internal const string SE_SHUTDOWN_NAME = "SeShutdownPrivilege";
internal const int EWX_LOGOFF = 0x00000000;
internal const int EWX_SHUTDOWN = 0x00000001;
internal const int EWX_REBOOT = 0x00000002;
internal const int EWX_FORCE = 0x00000004;
internal const int EWX_POWEROFF


Ïà¹ØÎĵµ£º

ASP.NETÒ³Ãæ¼äµÄ´«ÖµµÄ¼¸ÖÖ·½·¨£¨×ªÔØ£©

ASP.NETÒ³Ãæ¼äµÄ´«ÖµµÄ¼¸ÖÖ·½·¨£¨×ªÔØ£©
 ASP.NET¡¡WEB¡¡FORMS¡¡¡¡¸ø¿ª·¢ÕßÌṩÁ˼«ºÃµÄʼþÇý¶¯¿ª·¢Ä£Ê½¡£È»¶øÕâÖÖ¼òµ¥µÄÓ¦ÓóÌÐò¿ª·¢Ä£Ê½È´¸øÎÒÃÇ´øÀ´ÁËһЩСÎÊÌ⣬¾Ù¸öÀý×Ó£¬ÔÚ´«Í³µÄASPÓ¦ÓóÌÐòÖУ¬ÄãÄܹ»Í¨¹ýPOST·½·¨ºÜÈÝÒ׵İÑÒ»¸öÖµ»ò¶à¸öÖµ´ÓÒ»¸öÒ³Ãæ´«Ë͵½ÁíÒ»¸öÒ³Ãæ£¬ÓÃͬÑùµÄ·½·¨ÔÚASP.NETÖÐʵÏÖÓеãÂé·³ ......

asp.netµ÷ÓÃbatÎļþ

ÒýÓÃÃüÃû¿Õ¼ä
using System.Diagnostics;
                string sPath = "d:\\test\\test.bat";
string sDict = "d:\\test\\";
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe ......

ʹÓÃasp.net 2.0ÖеÄSqlBulkCopyÀàÅúÁ¿¸´ÖÆÊý¾Ý

½éÉÜ£º
ÔÚÈí¼þ¿ª·¢ÖУ¬°ÑÊý¾Ý´ÓÒ»¸öµØ·½¸´ÖƵ½ÁíÒ»¸öµØ·½ÊÇÒ»¸öÆÕ±éµÄÓ¦ÓᣠÔںܶ಻ͬµÄ³¡ºÏ¶¼»áÖ´ÐÐÕâ¸ö²Ù×÷£¬°üÀ¨¾Éϵͳµ½ÐÂϵͳµÄÒÆÖ²£¬´Ó²»Í¬µÄÊý¾Ý¿â±¸·ÝÊý¾ÝºÍÊÕ¼¯Êý¾Ý¡£ ASP.NET 2.0ÓÐÒ»¸öSqlBulkCopyÀ࣬Ëü¿ÉÒÔ°ïÖúÄã´Ó²»Í¬µÄÊý¾ÝÔ´¸´ÖÆÊý¾Ýµ½SQL SERVERÊý¾Ý¿â¡£ ±¾ÎÄÖÐÎÒ½«Ê¾·¶SqlBulkCopyÀàµÄ²»Í¬Ó¦Óá£
Êý¾ ......

asp.net¿Ø¼þ¿ª·¢£¨Ò»£© ÏÔʾ¿Ø¼þÄÚÈÝ

asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢£¨Ò»£©-ÏÔʾ¿Ø¼þÄÚÈÝ
asp.net¿Ø¼þµÄÏÔʾ×ÔÈ»»áÀë²»¿ªÊä³öHTML¡¢CSS¡¢JavascriptµÈǰ̨µÄÏÔʾÄÚÈÝ£¬ËùÒÔ¿ª·¢Ò»¸ö¿Ø¼þµÄʱºòµÚÒ»¼þʾÍÊÇÒªÖªµÀÈçºÎÊä³ö¿Í»§¶ËÒªÏÔʾµÄÄÚÈÝ¡£
¡¡¡¡Ò»¡¢Ñ¡Ôñ»ùÀà
¡¡¡¡asp.netÖÐËùÓеıê×¼¿Ø¼þ¶¼¿ÉÒÔÄùýÀ´×÷Ϊ»ùÀ࣬Èç¹ûÎÒÃÇÒª¿ª·¢µÄ¿Ø¼þÖ»ÊǶÔÔ­Óеıê×¼¿Ø¼þ×öÒ ......

asp.net¿Ø¼þ¿ª·¢(Èý)£º´¦Àí±êÇ©¼äÄÚÈÝ

asp.net½Ì³Ì:asp.net¿Ø¼þ¿ª·¢(Èý)£º´¦Àí±êÇ©¼äÄÚÈÝ
asp.net¿Ø¼þ±êÇ©¼äµÄÄÚÈÝÓеÄʱºò´¦Àí³É½ÚµãÓеÄʱºò´¦Àí³É×ӿؼþ¡£È磺¼äµÄ½Úµã¾Í»á´¦Àí³ÉÊôÐÔTextµÄÖµ£¬¶øÈçPanelÕâÑùµÄ¿Ø¼þÔò¾ÍÊǽ«Æä´¦Àí³É×ӿؼþ¡£Ê×ÏÈ¿´ÈçºÎ´¦Àí³ÉÊôÐԵġ£
¡¡¡¡Ò»¡¢´¦Àí³ÉΪÊôÐÔ
¡¡¡¡¶ÔÓڿؼþ±êÇ©¼äµÄÄÚÈÝÎÒÃÇ¿ÉÒÔͨ¹ýÀàSystem.Web.UI.ParseChil ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ