r.MapPath("log\")+subject.value+".htm") strwriterobj.Write("<HTML><head><meta http-equiv='Content-Language' content='zh-cn'><meta http-equiv='Content-Type' content='text/html; charset=gb2312'></head><BODY>"+lbmsg.text+"</BODY></HTML>") catch er as Exception lbmsg.text=lbmsg.text+er.message+"<br>" finally strwriterobj.close lbmsg.text=lbmsg.text+"日志保存成功!保存目录:<br>"+Server.MapPath("log\")+subject.value+".htm" End Try
End Sub
'链接数据库 'www.knowsky.com Function ConnectDB(txtdatabase AS String) As Oledbconnection Dim conn AS OledbConnection Dim connstr As String connstr="Provider=Microsoft.Jet.OLEDB.4.0; Persist Security Info=False; Data Source=" +Server.MapPath(txtdatabase) connectdb=New OledbConnection(connstr) End Function
'读取一条记录 Function readdb(conn As Oledbconnection,txtsql As String) As OledbDataReader Dim cmd As OledbCommand cmd=new oledbcommand(txtsql,conn) readdb=cmd.executereader() End Function </SCRIPT>
<p align="center"><font size="5" face="楷体_GB2312">邮件列表</font></p> <hr width="60%" size="1"> <div align="center"> <center> <table border="0" width="770"> <tr> <td width="100%"> <form method="POST" runat="Server"> <table border="0" width="100%" height="125"> <tr> <td width="15%" align="right" height="24"> 发送邮箱: </td> <td width="85%" height="24"><input type="text" name="sendmailbox" id="sendmailbox" size="50" runat="Server"/></td> </tr> <tr> <td width="15%" align="right" height="24"> 标题: </td&g
上一页 [1] [2] [3] [4] [5] 下一页 |