Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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µ÷ÓÃjs´úÂë

 ×î½üºÜ¿àÄÕ£¬µ±Êý¾Ý·ÃÎÊʧ°Ü»òÕ߳ɹ¦µÄʱºò£¬ÒªÒ³ÃæµÄjs´¦ÀíһЩЧ¹û£¬Ö»ÊDz»ÖªµÀÔõôµ÷Ó㬷dz£ÓôÃÆ¡£ÖÕÓÚÕÒ
µ½ÁËÒ»¸öµØ·½£º
 ScriptManager.RegisterStartupScript(ListUpdatePanel, typeof(UpdatePanel), "", "alert(1);", true);
ÔÚºǫ́µÄº¯ÊýÖе÷ÓÃÕâ¸ö¼´¿É¡££¨Õë¶Ôupdatepanel£©Ë¢ÐÂÊý¾Ýºó£¬¾Í»áµ÷ÓÃjs ......

aspÒ³Ã洫ֵС½á

°´ÕÕÌøתҳÃæµÄ·½Ê½£¬Ò»Ò»À´×ܽá
Ê×ÏÈ˵½ÓÊÜÒ³Ãæ»ñÈ¡²ÎÊýµÄ·½Ê½£º
  1£©request.querystring¡£Ö»ÒªurlÖк¬ÓвÎÊý£¬¼´¿É´«µÝ
      ±ÈÈç µØÖ·£ºindex.aspx?label=da
              ÔòÓÃRequest.QueryString["label"]¼´ ......

aspÉÏ´«Àà2

 1.html´úÂë  formnameÊÇ±íµ¥name,editnameÊÇÎļþÓòname,uppathÊÇÉÏ´«Îļþ±£´æ·¾¶.
<input name="qtxx" type="text" id="qtxx" size="50" />
 
<input type="button" name="Submit22" value="ÉÏ´«Í¼Æ¬" onClick="window.open('upload.asp?formname=from1&editname=qtxx&uppath ......

aspÊý×éʹÓÃ


ÔÚaspÊý×鶨ÒåÖÐ,¿ÉÒÔÖ±½Ó¶¨Òå,Ò²¿ÉÒÔʹÓÃArrayº¯Êý¶¨Òå..
ÏÈ¿´ÓÃArray()º¯Êý¶¨ÒåÀý×Ó:
<%
dim MyArray
MyArray=Array("ÌìÑÄ·çÔÆ","СС³ÌÐòÔ±")
%>
<p><%=MyArray(1)%></p>
·µ»Ø½á¹û:СС³ÌÐòÔ±
Ö±½Ó¶¨Òå:
<%
dim MyArray(2)
MyArray(0)="ÌìÑÄ·çÔÆ"
MyArray(1)="СС³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ