Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Ó¦Óý¡¿µ×´¿ö¼àÊÓ

½¡¿µ×´¿ö¼àÊӵij£ÓÃÊõÓ
ÇëÇó
ÏìÓ¦
ÐéÄâÓû§£ºÄ£Äâä¯ÀÀÆ÷ÏòWeb·þÎñÆ÷·¢ËÍÇëÇó²¢½ÓÊÕÏìÓ¦µÄÒ»¸ö½ø³Ì»òÏ̡߳£
ÏìӦʱ¼ä£ºä¯ÀÀÆ÷ÏòWeb·þÎñÆ÷Ìá½»Ò»¸öÇëÇóµ½ÊÕµ½ÏìÓ¦Ö®¼äµÄ¼ä¸ôʱ¼ä¡£
˼¿¼Ê±¼ä£ºä¯ÀÀÆ÷ÔÚÊÕµ½ÏìÓ¦ºóµ½Ìá½»ÏÂ
Ò»¸öÇëÇóÖ®¼äµÄ¼ä¸ôʱ¼ä¡£
ÇëÇó³É¹¦ÂÊ£ºWeb·þÎñÆ÷ÕýÈ·´¦ÀíµÄÇëÇóÊýÁ¿ºÍ½ÓÊÕµ½µÄÇëÇóÊýÁ¿µÄ±È¡ ......

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

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

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language=”javascript”> < !– function disableOtherSubmit() {
var obj ......

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ºÅ