ASPÑ»·Êä³ö±í¸ñÐÐtrµÄ·½·¨
<%
for i=1 to rs.recordCount '±äÁ¿i´Ó1Ñ»·µ½Êý¾Ý¿âÖеÄÈ«²¿¼Ç¼Êý
if (i mod 1 =1) then 'ÿ¸ötr¼´Ã¿ÐÐÏÔʾ1¸ö¼Ç¼,¿É¸ù¾ÝÐèÒª×ÔÐÐÐÞ¸Ä, ½«×ó±ßµÄ1ÐÞ¸ÄΪ2¼´ÏÔʾÁ½ÐС£
response.write "<tr align='center'>"
end if
%>
´Ë´¦ÎªÒªÑ»·µÄÄÚÈÝ
<%if (i mod 1 = 0) then 'ÿ¸ötr¼´Ã¿ÐÐÏÔʾ1¸ö¼Ç¼,¿É¸ù¾ÝÐèÒª×ÔÐÐÐÞ¸Ä, ½«×ó±ßµÄ1ÐÞ¸ÄΪ2¼´ÏÔʾÁ½ÐС£
response.write "</tr>"
end if
rs.movenext
next
rs.close
%>
±¸×¢£º
Èç¹ûÒªÊä³öÐòºÅ£¬ÔÚASPÖÐʹÓÃ<%=i%>±ê¼Ç¼´¿É£¬Ôò i ¶ÔÓ¦Êä³öµÄÄÚÈÝΪ1¡¢2¡¢3¡¢4……100¡¢101¡¢102……
±¾ÀýÖÐÖ»Òª½«<%=i%>·ÅÔÚÑüÑ»·µÄÄÚÈÝÖоͿÉÒÔ
Ïà¹ØÎĵµ£º
´Ó×Ö·û´®Öзµ»ØÖ¸¶¨ÊýÄ¿µÄ×Ö·û¡£
Mid(string, start, length)
²ÎÊý
string
×Ö·û´®±í´ïʽ£¬´ÓÖзµ»Ø×Ö·û¡£Èç¹û string °üº¬ Null£¬Ôò·µ»Ø Null¡£
Start
string Öб»ÌáÈ¡µÄ×Ö·û²¿·ÖµÄ¿ªÊ¼Î»Öá£Èç¹û start ³¬¹ýÁË string ÖÐ×Ö·ûµÄÊýÄ¿£¬Mid ½«·µ»ØÁ㳤¶È×Ö·û´® ("")¡£
Length
Òª·µ»ØµÄ×Ö·ûÊý¡£Èç¹ûÊ¡ ......
³öÏÖÕâ¸öÔÒòÊÇinternetÓû§·ÃÎʵÄȨÏÞ²»¹»£¬ÏµÍ³Ä¬ÈÏȨÏÞÊÇÖ»¶ÁµÄ£¬ËùÒÔÎÒÃÇÒª¸øËü·ÖÅä¿ÉÐÞ¸ÄȨÏÞ£¬·Ï»°²»¶à˵£¬½øÈëÖ÷Ì⣺
1.×ÊÔ´¹ÜÀíÆ÷——>¹¤¾ß——>Îļþ¼ÐÑ¡Ïî——>²é¿´
2.½«"¼òµ¥Îļþ¹²Ïí(ÍƼö)"Ñ¡ÏîÈ¥µô
3.Ñ¡ÔñÄãµÄWEBÎļþ¼Ð£¬¿´ÆäÊôÐÔ£¬ÕâʱÄã»á·¢ÏÖ¶àÁ˸ö"°²È«"Ñ¡Ï£ ......
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Ìæ»»º¯Êý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= ......
<%
'ÒÔÏÂÊÇÊÔÓðæ´úÂ룬Êǹ̶¨µÄ´úÂ룬ֻÓÐÕýʽ°æ²Å¿É×Ô¶¯´Óºǫ́Êý¾Ý¿âÖжÁȡͼƬ¡£
piao1="images/1.jpg"
piao1url=""
piaos1="ͼ1"
piao2="images/2.jpg"
piao2url=""
piaos2="ͼ2"
piao3="images/ ......