asp。net写日志
string path = "...\\Debug\\log.txt";
if (!File.Exists(path))
{
StreamWriter sw1;
sw1 = File.CreateText(path);
sw1.Close();
}
StreamReader sr = new StreamReader(path);
string strSr = sr.ReadToEnd().ToString();
sr.Close();
&n
相关问答:
我找了一个伪静态代码,如下:
index.asp
<!--#include file="config.asp"-->
<ol>
<%
Set rs=server.CreateObject("adodb.recordset") & ......
不是直接打开,而是读取内容,然后可以操作的数据,可以存储到数据库或者显示在页面上。
word文件在服务器端。
可以考虑用第三方组件
http://officewriter.softartisans.com/officewriter-372.aspx
有中文说 ......
<?php
if($_SERVER['HTTP_REFERER']!=''){
@header("Content-type:image/jpeg");
echo file_get_contents("xlight.jpg");
}
else{
@header("location:ht ......
哪位大哥有没有ASP.NET中利用Cookies实现用户自动登录的代码...谢谢了...越详细越好....
什么意思?自动登录?
mark 貌视是存储cookies 我也对cook比较迷糊 关注下
既然你知道用cookies自己动动大脑多好! ......
哪里出错了,输出这样的结果??
<%@ Page Language="VB" AutoEventWireup="false" aspcompat="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&g ......