本地机器名sogankyo
运行http://sogankyo/test.aspx报错,<%@ Page Language="C#" Debug="true" %>
<script runat="server"> void Page_Load()
{
Response.Write ("test ...<br />");
System.Diagnostics.Process.Start(@"C:\Inetpub\wwwroot\a.bat");
//运行a.bat后会生成result.xls
Response.Redirect("result.xls");
}</script>
<html>
<head>
<title>test</title>
</head>
<body>
<br />
c:\nex_dspalog.bat call by test.aspx<br />
<a href="result.xls">result</a>
<br />
<form runat="server">
</form>
</body>
</html>
运行http://sogankyo/test.aspx报错,<%@ Page Language="C#" Debug="true" %>
<script runat="server"> void Page_Load()
{
Response.Write ("test ...<br />");
System.Diagnostics.Process.Start(@"C:\Inetpub\wwwroot\a.bat");
//运行a.bat后会生成result.xls
Response.Redirect("result.xls");
}</script>
<html>
<head>
<title>test</title>
</head>
<body>
<br />
c:\nex_dspalog.bat call by test.aspx<br />
<a href="result.xls">result</a>
<br />
<form runat="server">
</form>
</body>
</html>
解决方案 »
- 点击li标记中的<a>标记改变li背景图片怎样实现
- winform datagrideview导出到excel
- C#中如何动态的申明变量啊
- c# 数据库的例子,winform 的
- 如何找到Repeater中RadioButtonList中发生的事件?(关于投票问题)
- winform中,动态增加节点问题,马上结分
- 如何让没有图片的pictureBox上显示默认的文字?
- listview 导入文本 第一列如何显示索引号
- 在c#中使用oracle数据库的问题??
- 帮忙看看!连不上服务器!!!!!
- 高手关于DTE,我们保存我们的工程的时候,.net啊有哪个地方会发生一个动作?
- 如何在C#编程中以特定身份登录访问网络邻居中的一个共享目录?
http://local/test.aspx
http://127.0.0.1/test.aspx
看wwwroot目录的位置在哪儿,可以搜一下,找到位置