易截截图软件、单文件、免安装、纯绿色、仅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问题,请教,急!!!

asp.net  基于vb。net编程语言   sql数据库
表1                                         ......

ASP.NET中防止页面多次提交的代码实现

此处提供的代码用来实现当asp.net页面中的某个Button被点击后disable掉该页面中所有的Button,从而防止提交延时导致的多次提交。基于之前的onceclickbutton脚本.
//ASP.NET中防止页面多次提交的代码:javascript< script language=”javascript”> < !– function disableOtherSubmit() {
var obj ......

asp.net中容易混淆的ajax概念


AJAX是Asynchronous JavaScript and XML缩写。这个概念代表的是一种技术,当您在说“我在项目中使用了AJAX技术时”,只是代表了您使用客户端XMLHttpRequest对象与服务器端进行异步通信。不过因为随着AJAX技术的运用往往会带来丰富的客户端效果,因此对AJAX技术的广义理解也可以认为这是一种操作 ......

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号