ÔÚ ASP ÖÐʹÓà Request.ServerVariables("REMOTE_ADDR") À´È¡µÃ¿Í»§¶ËµÄ IP µØÖ·£¬µ«Èç¹û¿Í»§¶ËÊÇʹÓôúÀí·þÎñ
Æ÷À´·ÃÎÊ£¬ÄÇÈ¡µ½µÄ¾ÍÊÇ´úÀí·þÎñÆ÷µÄ IP µØÖ·£¬¶ø²»ÊÇÕæÕýµÄ¿Í»§¶Ë IP µØÖ·¡£ÒªÏë͸¹ý´úÀí·þÎñÆ÷È¡µÃ¿Í»§¶ËµÄÕæʵ
IP µØÖ·£¬¾ÍҪʹÓà Request.ServerVariables("HTTP_X_FORWARDED_FOR") À´¶ÁÈ¡¡£
¡¡¡¡²»¹ýҪעÒâµÄÊ£¬²¢²»ÊÇÿ¸ö´úÀí·þÎñÆ÷¶¼ÄÜÓà Request.ServerVariables("HTTP_X_FORWARDED_FOR") À´¶ÁÈ¡¿Í»§¶Ë
µÄÕæʵ IP£¬ÓÐЩÓô˷½·¨¶ÁÈ¡µ½µÄÈÔÈ»ÊÇ´úÀí·þÎñÆ÷µÄ IP¡£
¡¡¡¡»¹ÓÐÒ»µãÐèҪעÒâµÄÊÇ£ºÈç¹û¿Í»§¶ËûÓÐͨ¹ý´úÀí·þÎñÆ÷À´·ÃÎÊ£¬ÄÇôÓà Request.ServerVariables
("HTTP_X_FORWARDED_FOR") È¡µ½µÄÖµ½«Êǿյġ£Òò´Ë£¬Èç¹ûÒªÔÚ³ÌÐòÖÐʹÓô˷½·¨£¬¿ÉÒÔÕâÑù´¦Àí£º
......
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
......
¡¡¡¡¼´£ºÈç ......
<%
set rs=server.CreateObject(”ADODB.recordset”)
sql =”select * from ±í”
rs.open sql,conn,1,1
page=cint(request(”page”))
n=rs.RecordCount
rs.pagesize=12
m=cint(rs.pagecount)
if page=”" then
page=1
elseif page<1 then
page=1
end if
if cint(request(”page”))>m then
page=m
end if
page=cint(page)
if not rs.eof then
rs.absolutepage=page
end if
if m>page+3 then
endpage=page+3
else
endpage=m
end if
if page>4 then
pagetitle=pagetitle & “ ” & “….”
end if
for i=page-3 to endpage
if not i<1 then
if i = page then
pagetitle=pagetitle & “ ” & “<B>[” & i & “]</B>”
else
pagetitle=pagetitle & “ ” & “[” & “<a href=userlist.asp?page=” & i & “>” & i & “<a>” & “]”
end if
end if
next
if ......
ÔÚ¶àÏîÑ¡ÔñµÄһЩӦÓÃÖУ¬¿ÉÒÔÓöþ½øÖÆ1´ú±íÑ¡ÖУ¬0´ú±í²»Ñ¡¡£ÀýÈç¸øijÓû§½ÇÉ«·ÖÅäȨÏÞabcdefg£¬Ñ¡ÖÐÇé¿öÊÇ1001101£¬ÄÇô´Ë½ÇÉ«°üº¬ËÄÏîȨÏÞ£¬ÓÃÒ»¸ö±äÁ¿±íʾ£¬ÏàÓ¦µÄÊ®½øÖÆÊýÊÇ77¡£
µ«ÊÇ£¬ÔÚASPÖеĶàÏîÑ¡Ôñ£¬¾Í²»ÊʺÏÕâÖÖÒÔÊýÖµµÄÐÎʽ¼Ç¼ѡÖÐÇé¿ö¡£ÒòΪ£¬µ±ÏîÄ¿ÊýºÜ¶àʱ£¨ÀýÈç64ÏÏàÓ¦µÄ¶þ½øÖÆÊý´ï64룩£¬¾ÍÉæ¼°´óÕûÊýµÄÔËË㣬²½Öè·±ÔÓ£¬¶øÇÒµ±ÏîÄ¿Êý¸Ä±äʱ£¬Ëã·¨Ò²Òª¸Ä±ä¡£
ÒÔÏÂÒÔ×Ö·ûµÄÐÎʽ»ñÈ¡ºÍ»¹ÔASP¸´Ñ¡¿òµÄÖµ£¬Ó¦ÓÃÓÚ½ÇÉ«·ÖÅ䡢ͶƱͳ¼ÆµÈÁìÓò£¬×î¶à99Ï
<script language="javascript">
function selectIt(){
form=document.lzyy
action=event.srcElement.name
for(var i=0; i<form.elements.length; i++){
if(form.elements[i].name=="test"){
e=form.elements[i]
e.checked=(action=="selectAll")?(form.selectAll.checked):(!e.checked)
}
}
}
</script>
<%
dim check,ch,test
check=99 '× ......
1.ÊýÖµÐͺ¯Êý£º abs(num): ·µ»Ø¾ø¶ÔÖµ sgn(num): num>0 1; num=0 0; num<0 -1;ÅжÏÊýÖµÕý¸º hex(num): ·µ»ØÊ®Áù½øÖÆÖµ Ö±½Ó±íʾ£º&Hxx ×î´ó8λ oct(num): ·µ»Ø°Ë½øÖÆÖµ Ö±½Ó±íʾ£º&Oxx ×î´ó8λ sqr(num): ·µ»Øƽ·½¸ù num>0 int(num): È¡Õû int(99.8)=99; int(-99.2)=100 fix(num): È¡Õû fix(99.8)=99; fix(-99.2)=99 round(num,n): ËÄÉáÎåÈëȡСÊýλ round(3.14159,3)=3.142 ÖеãÊýÖµËÄÉáÎåÈëΪ½üżȡÕû round(3.25,1)=3.2 log(num): È¡ÒÔeΪµ×µÄ¶ÔÊý num>0 exp(n): È¡eµÄn´ÎÃÝ Í¨³£Óà num^n sin(num): Èý½Çº¯Êý£¬ÒÔ»¡¶ÈΪֵ¼ÆËã (½Ç¶È*Pai)/180=»¡¶È con(num); tan(num); atn(num)
2.×Ö·û´®º¯Êý£º len(str)£º¼ÆËã×Ö·û´®³¤¶È ÖÐÎÄ×Ö·û³¤¶ÈÒ²¼ÆΪһ£¡ mid(str,Æðʼ×Ö·û,[¶ÁÈ¡³¤¶È])£º½ØÈ¡×Ö·û´®Öмä×Ó×Ö·û´® left(str,nlen)£º´Ó×ó±ßÆð½ØÈ¡nlen³¤¶È×Ó×Ö·û´® right(str,nlen)£º´ÓÓÒ±ßÆð½ØÈ¡nlen³¤¶È×Ó×Ö·û´® Lcase(str)£º×Ö·û´®×ª³ÉСд Ucase(str)£º×Ö·û´®×ª³É´óд trim(str)£ºÈ¥³ý×Ö·û´®Á½¶Ë¿Õ¸ñ Ltrim(str)£ºÈ¥³ý×Ö·û´®×ó²à¿Õ¸ñ Rtrim(str)£ºÈ¥³ý×Ö·û´®ÓÒ²à¿Õ¸ñ replace(str,²éÕÒ×Ö·û´®,Ìæ´ú×Ö·û´®,[Æðʼ×Ö·û,Ìæ´ú´ÎÊý,±È½Ï·½·¨])£ºÌæ»»×Ö·û´®×¢£ºÄ¬ÈÏÖµ ......
<input type="submit" name=""byt id="byt" value="ÏÖ½ðÏúÊÛÌá½»" >
ÀýÈ磺±íµ¥ÖÐÓÐÒ»¸öÃûΪ byt µÄ°´Å¥£¬ÒªÇóÍøÒ³´ò¿ª1Ãëºó£¬×Ô¶¯µã»÷°´Å¥£¬
·½·¨£º°ÑÈçÏ´úÂë¼ÓÔÚ</form>ºó¡£
<script language="javascript">
function window.onload()
{
setTimeout("document.form1.byt.click()",1000);//1 minute
}
</script>
ÆäÖУ¬form1ÊÇ±íµ¥Ãû£¬byt ÊÇ°´Å¥Ãû ......
1.ÔÚ½â¾ö·½°¸ÖÐÌí¼ÓÐÂÏîÄ¿Êý¾Ý¼¯-mydbDataSet.xsd£¬ÔÚÊý¾Ý¼¯ÀïÌí¼ÓËùÒªÓõ½µÄ±í»ò¸ù¾ÝÐèÒªÖÆ×÷ÐÂ±í¡£
2.ÔÚÉè¼ÆÒ³ÃæÖÐÀÈëÒ»¸öMicrosoftReportViewer£¬Éè¼Æб¨±í£¬°´ÕÕ±¨±íÏòµ¼¸ù¾Ý×Ô¼ºµÄÐèҪѡÔñ±¨±íµÄÊý¾ÝÔ´ºÍÊý¾ÝÏÍê³Éб¨±íreport1.rdlcµÄÖÆ×÷¡£ÔÚÔ´ÂëÖÐÈçÏ£¨“¿¼ºË³É¼¨”ΪÊý¾Ý¼¯ÖеÄÒ»¸ö±í£©
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" Height="400px" Width="930px">
<LocalReport ReportPath="Report1.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1"
  ......