Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : asp

ÕßÕßÈí¼þ ASPÈçºÎ»ñÈ¡ÕæʵIPµØÖ·


ÔÚ 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") 
...... 
¡¡¡¡¼´£ºÈç ......

aspÊý×Ö·ÖҳʾÀý¹²Èý¸ö

<%
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 ......

ASP»ñÈ¡ºÍ»¹Ô­¸´Ñ¡¿òµÄÖµ(0¡«99¶àÏîÑ¡Ôñ)

    ÔÚ¶àÏîÑ¡ÔñµÄһЩӦÓÃÖУ¬¿ÉÒÔÓöþ½øÖÆ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  '× ......

Asp ³£Óú¯Êý

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,²éÕÒ×Ö·û´®,Ìæ´ú×Ö·û´®,[Æðʼ×Ö·û,Ìæ´ú´ÎÊý,±È½Ï·½·¨])£ºÌæ»»×Ö·û´®×¢£ºÄ¬ÈÏÖµ ......

ASP ÍøÒ³µÇ¼1Ãëºó×Ô¶¯Ä£Äâµã»÷input°´Å¥

<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 ÊÇ°´Å¥Ãû ......

ASPÖж¯Ì¬Ê¹ÓÃMicrosoftReportÏê½â

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"
   ......
×ܼǼÊý:617; ×ÜÒ³Êý:103; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [91] [92] [93] [94] 95 [96] [97] [98] [99] [100]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ