asp转asp.net(C#)
哪位高人能把他转成asp.net(C#)的啊,我看了好几天看得头都大了,转换成功的再加100分,呵呵,顺便交个朋友啊!
代码帖不上来。。我放空间里了,是文本格式。
地址是http://rcdj.host.idc163.cn/asp.txt
参考答案:System.Data.OleDb.OleDbConnection Conn = new System.Data.OleDb.OleDbConnection();
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" +Server.MapPath("img.mdb");
Conn.Open();
string strnow =replace(replace(replace(now, ":", ""), "-", ""), " ", "");
string strSaveFileName =strNow +".bmp";
void DataConnect()
{
if (!isObject(Conn) ){
// System.Data.OleDb.OleDbConnection Conn = new System.Data.OleDb.OleDbConnection();
//Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("img.mdb");
//Conn.Open();
if (Err)
{
Conn.Close();
Response.Write ("数据库连接错误,可能数据库路径设置错误。<br><font color=red>" + Err.description & "<br>");
Err.Clear();
Response.End;
}
}
}
void DataDisConnect()
{
if (conn.State==ConnectionState.open)
{
conn.Close();
} }
int intTotalLine;
intTotalLine =Request.Form.Count;
string strHeadData;
sadasa as/
asdfasf asf
sdfasfas
sfafasfas