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

asp.netµ÷ÓÃbatÎļþ

ÒýÓÃÃüÃû¿Õ¼ä
using System.Diagnostics;
                string sPath = "d:\\test\\test.bat";
string sDict = "d:\\test\\";
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardInput = true;
psi.RedirectStandardError = true;
psi.Arguments = sPath;
psi.WorkingDirectory = sDict;
// Start the process
System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);
// Attach the output for reading
System.IO.StreamReader sOut = proc.StandardOutput;
proc.Close();
// Read the sOut to a string.
string results = sOut.ReadToEnd().Trim();
sOut.Close();
// Write out the results.
string fmtStdOut = "<font face=courier size=0>{0}</font>";
this.Response.Write(String.Format(fmtStdOut, results.Replace(System.Environment.NewLine, "<br />")));


Ïà¹ØÎĵµ£º

ASP.NETÒ³Ãæ½ÒÃØ£¨¶þ£©

   ÕâÀïÖ÷Ҫ̸̸ApplicationÀàÖеÄʼþ
ÓÉǰһƪÎÄÕ¿ÉÒÔÖªµÀ£¬Ò»µ©³öÏÖÁËHttpContextÀàµÄÒ»¸öʵÀý£¬HttpRuntimeÀà¾Í»á½¨Á¢Ò»¸öASP.NETÓ¦ÓóÌÐò¶ÔÏóÀ´Íê³É¸ÃÇëÇó¡£Ò»¸öÓ¦ÓóÌÐò°üÀ¨HttpApplicationÀàµÄÒ»¸öʵÀý¡£HttpApplicationÊÇÒ»¸öglobal.asaxÅÉÉúµÄ¶ÔÏ󣬴¦ÀíËùÓб»´«µÝ¸øÄ³¸öÐéÎļþ¼ÐµÃHttpÇëÇó¡£Ò»¸öÕýÔÚ ......

ASP.netʹÓÃURL´«µÝÖÐÎIJÎÊý

ASP.NETÓÃURL´«µÝÖÐÎIJÎÊýÒ»°ã»áʧ°Ü£¬Ô­ÒòÊÇÔÚ»ñÈ¡²ÎÊýÖ®ºó½øÐÐÁ˱àÒëת»»¡£
¿ÉÄܹýÐÞ¸Äweb.configÎļþÈÃURLÕý³£´«µÝÖÐÎIJÎÊý
ÔÚSystem.web½ÚÌí¼Ó
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312"/>

¼´¿É ......

ת asp.net µ¥Óû§µÇ¼¾­µä½â¾ö·½°¸

½ñÌìÒª×öºÃÒ»µãµÄµÇ½¿ò½á¹û¾ÍÏë×ö¸öÈ«¾ÖµÄÅжÏÊÇ·ñÓû§ËùÒÔÕÒÁËÒ»ÏÂÎÄÕÂ
ÕâÀïÖ¸µÄµ¥µã£¬·ºÖ¸ÔÚWEB·þÎñ¶Ë£¬Ò»¸öÕË»§Í¬Ò»Ê±¿ÌÖ»ÄÜ´æÔÚÒ»¸öƱ¾Ý£¡
´ó¼Ò¿ª·¢ÖпÉÄܶ¼Åöµ½µÄÒ»¸öÎÊÌ⣬Ôõôʹͬһ¸öÓû§£¬ÔÚͬһʱ¼äÄÚÖ»ÔÊÐíµÇ¼һ´Î¡£
ºÜ¶àÈ˶¼»áÏëµ½ÔÚÊý¾Ý¿âÖÐÓÃÒ»¸ö±êʶ×ֶΣ¬µÇ¼½øÈ¥ÖÃ1,Í˳öÖÃ0,µÇ¼ʱÅжÏÕâ¸ö×ֶΣ¬Èç¹ ......

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

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

FckeditorÅäÖù¥ÂÔ asp.net°æ

ÍøÂçÎı¾±à¼­Æ÷----Fckeditor֮ʹÓÃÆª
1.ÏÂÔØFckeditor£¬asp.net°æ·ÖÁ½²¿·Ö£¬FCKeditorºÍFCKeditor.Net: ASP.Net Control¡£
¹Ù·½ÍøÕ¾£ºhttp://ckeditor.com/download
2.FckeditorÔÚÏîÄ¿Öеɡ£
  ºÜ¼òµ¥£¬²»ÔÙ׸Êö¡£
²Î¿¼ÎÄÏ×£ºhttp://www.cnblogs.com/zhubo/archive/2008/10/21/using_fckeditor_net.html
³£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ