易截截图软件、单文件、免安装、纯绿色、仅160KB

asp Jmail发邮件类

<!--#include file="conn.asp" -->
<!--#include file="Fun.asp" -->
<%
'发送邮件类
class SendEmails
'发送
private flag
private info
public sub Class_Initialize()
flag=false
info=""
end sub
public sub Class_Terminate()
flag=false
info=""
end sub
public property let SetFlag(byval v)
flag=v
end property

public property get GFlag()
GFlag=flag
end property

public property let SetMsg(byval m)
info=m
end property

public property get GMsg()
GMsg=info
end property
'得到邮箱服务器设置
private function getEmailset()
set f1=new DbConstrol
OpenConn()
f1.DConn=conn
set rs=f1.GetRs("select * from tbSetMail")
getEmailset=rs.getrows
rs.close
set rs=nothing
closeconn
set f1=nothing
end function

public function Sends()
call postFormfrom()
fromname=getFormStr("fromname")
fromaddress=getFormStr("fromaddress")
toname=getFormStr("toname")
toaddress=getFormStr("toaddress")
title=getFormStr("title")
content=getFormStr("content")
isimportance=getFormStr("isimportance")
if len(fromname)=0 then
Msg "请填写发件人姓名!",0,""
response.End()
end if
if len(fromaddress)=0 then
Msg "请填写发件人地址!",0,""
response.End()
end if
if len(toname)=0 then
Msg "请填写收件人姓名!",0,""
response.End()
end if
if len(toaddress)=0 then
Msg "请填写收件人地址!",0,""
response.End()
end if
if len(title)=0 then
Msg "请填写邮件主题!",0,""
response.End()
end if
if len(content)=0 then
Msg "请填写邮件内容!",0,""
response.End()
end if
if isimportance="1" then
isimportance=1
else
isimportance=3
end if
arr=getEmailset()
MailServerUser=trim(arr(4,0))
M


相关文档:

asp将table生成excel文件xls

 <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
if request("action")=1 then
 Response.ContentType="application/ms-excel"
 Response.AddHeader "content-disposition","attachment;filename=www.xls"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E ......

asp多风格分页类

 <%
'asp多风格分页类
'使用范例
'==========================================================================
'Set test = New Page '创建啦
'test.CurrentPage=1 '自己去读取拉,当前的页数
'test.temp="{N1}{N2}{N3} {N4}"'这里是显示的模版,自己可以定义,至于标签,可以自己去那个类里找
'test.Exec "S ......

asp中实现无刷新加载图片验证码

<script language="JavaScript">
function reloadcode(){
var verify=document.getElementById('safecode');
verify.setAttribute('src','images/chknumber.asp?'+Math.random());
//这里必须加入随机数不然地址相同我发重新加载
}
</script>
<img src="images/chknumber.asp"&n ......

ASP WebService的开发步骤

WebService服务端开发
1、创建WebService工程,选择XFire Core库
2、创建业务接口和其实现类(完成业务方法的定义和实现)
3、修改配置文件service.xml
4、如果需要使用WSDL,则需要导入xalan.jar文件至WEB-INF/lib中
5、导出接口至jar包中为客户端做准备
WebService客户端开发
1、创建Web工程,添加构建路径,选择X ......

ASP动态网页下UTF 8页面乱码的解决方法

为什么在ASP里指定了codepage为65001还经常显示乱码。才子在这里将这个问题详细解释一下,以免很多朋友再走弯路,甚至排斥UTF-8。 CHINAZ
  如果你还不知道UTF-8是什么东东,那才子建议你先去搜索一下UTF-8的相关资料吧。
  UTF-8编码之所以被越来越多的人接受甚至喜欢,肯定是有道理的,在WEB2.0盛行的今天,在大谈 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号