Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp·ÖÒ³ÏÔʾԴ´úÂë

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>·ÖÒ³ÏÔʾ</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table align=center border=1><tr bgcolor=#00FF00 >
<%
sql="select * from SbaseInfo"
rs.Open sql, conn, 1
page=1 ' ÉèÖñäÁ¿page=1
rs.PageSize = 3 'ÿҳÏÔʾ3¸ö¼Ç¼

if Not IsEmpty(Request("Page")) then 'Èç¹ûÇëÇóÏàÓ¦Ò³Êý¾Ý

Page = CInt(Request("Page")) '½«ÇëÇóµÄÒ³Êý¸³¸øpage

if Page > rs.PageCount then
rs.AbsolutePage = rs.PageCount
elseif Page <= 0 then
Page = 1
else
rs.AbsolutePage = Page
end if
End if
Page = rs.AbsolutePage
%>
<%
For j = 0 to rs.Fields.Count -1 'Êä³ö¸ö×Ö¶ÎÃû³Æ
filde = "<td nowrap>" & rs.Fields(j).name & "</td>" 'nowrapÊôÐÔ±ÜÃâ±í¸ñ×Ô¶¯»»ÐÐ
Response.Write(filde)
Next
%>


<%

For i = 1 to rs.PageSize 'Ñ­»·3´ÎÏÔʾÊý¾Ý
if rs.EOF then
Exit For
end if 'ÀûÓÃfor next Ñ­»·ÒÀ´Î¶Á³ö¼Ç¼
%>

<%
j = 0
Response.Write("<tr>")
For j = 0 to rs.Fields.Count -1 'Êä³ö¸ö×Ö¶ÎÊý¾Ý
filde = "<td nowrap>" & rs.Fields(j) & "</td>"
Response.Write(filde)
Next
%>

<%
rs.MoveNext
next
%>
</table>
</form>
<p align="center">
<%if request("page")>1 then%>
<a Href="·ÖÒ³ÏÔʾ.asp?Page=<% = 1%>">Ê×Ò³</a>
<a Href="·ÖÒ³ÏÔʾ.asp?Page=<% =page -1 %>">ÉÏÒ»Ò³</a>
<%end if %>

<%
If page +1 > rs.pagecount Then page = rs.pagecount -1 'Èç¹ûµã»÷"ÏÂÒ»Ò³"ºópageÖµ´óÓÚ×ÜÒ³Êý£¬ÔòÔÚµ±Ç°Ò³½«ÏÂÒ»Ò³µÄÖµ¸³Îª


Ïà¹ØÎĵµ£º

asp date()º¯Êý 2010 4 20 ÏëÏÔʾ2010 04 20Ôõô×ö£¿

dim dtNow
dtNow = date()
dim newDate
newDate = year(dtNow) & "-" & right("0" & month(dtNow),2) & "-" & right("0" & day(dtNow),2)
Õâ¸ö×Ô¶¯½«2010-4-20 ת»¯Îª 2010-04-20
http://w.sogou.com/question/99319695.html ......

asp/asp.netÁ¬½Ósql anywhereÊý¾Ý¿â


<%
set conn= server.createobject("ADODB.connection")
conn.open "driver={sybase driver 10};"
"srvr=SYBASE;"
"UID=sa;"
"pwd=sybase;"
sql="select no from tab_st ......

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ
Ò»¡¢vs2005—н¨ÏîÄ¿—C#Àà¿â
Àà¿âÔ´ÂëÈçÏÂ(°üº¬½Ó¿Ú£¬À࣬ʼþ½Ó¿Ú)£º
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
   ......

ASP±àÂë¹æ·¶

ASP±àÂë¹æ·¶
 
µÚÒ»Õ ASP±àÂë¹æ·¶Í¨Êö
¡¡¡¡¡¡¡¡ASP±àÂë·ÖΪÁ½´ó²¿·Ö£¬Ò»²¿·ÖΪ¾²Ì¬Îļþ±àÂ룬һ²¿·ÖΪ°üº¬·þÎñÆ÷¶Ë½Å±¾µÄ¶¯Ì¬Îļþ±àÂë¡£
¡¡¡¡¡¡¡¡¾²Ì¬Îļþ±àÂë·Öscript±àÂëºÍHTML±àÂëÁ½²¿·Ö¡£
¡¡¡¡¡¡¡¡·þÎñÆ÷¶Ë±àÂëÔò·ÖΪ·þÎñÆ÷½Å±¾¡¢¿Í»§¶Ë½Å±¾¡¢HTML½Å±¾Èý²¿·Ö¡£
¡¡¡¡¡¡¡¡±àÂë¹æ·¶²ÉÓÃÈçÏÂÔ¼¶¨£º
¡¡¡¡¡¡¡¡ Ë ......

Ò»¸öASPÌæ»»º¯ÊýimgÀïÃæ¶àÓàµÄ´úÂë

Ò»¸öASPÌæ»»º¯ÊýimgÀïÃæ¶àÓàµÄ´úÂë
 
<%
Response.Write(Server.HTMLEncode(FixImg("<img onclick=""if(this.width>screen.width-461) window.open('qq/20082181405371.jpg');"" alt="""" border=""0"" src=""qq/20082181405371.jpg"" />")))
%>
<%
'¹¦ÄÜ:½«IMG´úÂë¸ñʽ»¯Îª<img src= ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ