早教吧作业答案频道 -->其他-->
asp代码竖排改为横排,一排4个subShowArticle(TitleLen)ifTitleLen200thenTitleLen=50endififcurrentpagetotalputthenif(totalPutmodMaxPerPage)=0thencurrentpage=totalPut\MaxPerPageelsecurrentpage=totalPut\MaxPerPage+1endifendif
题目详情
asp代码 竖排改为横排,一排4个
sub ShowArticle(TitleLen)
if TitleLen200 then
TitleLen=50
end if
if currentpagetotalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
sqlArticle="select top " & MaxPerPage\x05
else
sqlArticle="select "
end if
sqlArticle=sqlArticle & " ArticleID,Product_Id,BigClassName,SmallClassName,IncludePic,Title,Price,Spec,Unit,Memo,Key,DefaultPicUrl,UpdateTime,Hits from Product where Passed=True "
if BigClassName"" then
sqlArticle=sqlArticle & " and BigClassName='" & BigClassName & "' "
if SmallClassName"" then
sqlArticle=sqlArticle & " and SmallClassName='" & SmallClassName & "' "
end if
else
if SpecialName"" then
sqlArticle=sqlArticle & " and SpecialName='" & SpecialName & "' "
end if
end if
sqlArticle=sqlArticle & " order by articleid desc"
Set rsArticle= Server.CreateObject("ADODB.Recordset")
rsArticle.open sqlArticle,conn,1,1
if rsArticle.bof and rsArticle.eof then
response.Write("
没有任何产品")
else
if currentPage=1 then
call ArticleContent(TitleLen)
else
if (currentPage-1)*MaxPerPage=MaxPerPage then exit do\x05
\x05loop
end sub
sub ShowArticle(TitleLen)
if TitleLen200 then
TitleLen=50
end if
if currentpagetotalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
sqlArticle="select top " & MaxPerPage\x05
else
sqlArticle="select "
end if
sqlArticle=sqlArticle & " ArticleID,Product_Id,BigClassName,SmallClassName,IncludePic,Title,Price,Spec,Unit,Memo,Key,DefaultPicUrl,UpdateTime,Hits from Product where Passed=True "
if BigClassName"" then
sqlArticle=sqlArticle & " and BigClassName='" & BigClassName & "' "
if SmallClassName"" then
sqlArticle=sqlArticle & " and SmallClassName='" & SmallClassName & "' "
end if
else
if SpecialName"" then
sqlArticle=sqlArticle & " and SpecialName='" & SpecialName & "' "
end if
end if
sqlArticle=sqlArticle & " order by articleid desc"
Set rsArticle= Server.CreateObject("ADODB.Recordset")
rsArticle.open sqlArticle,conn,1,1
if rsArticle.bof and rsArticle.eof then
response.Write("
没有任何产品")
else
if currentPage=1 then
call ArticleContent(TitleLen)
else
if (currentPage-1)*MaxPerPage=MaxPerPage then exit do\x05
\x05loop
end sub
▼优质解答
答案和解析
简单的说吧:
i=0
strTemp= strTemp & ""
"
i=0
strTemp= strTemp & "
"&rs("xxxxx")&" | "
看了asp代码竖排改为横排,一排4...的网友还看了以下:
可以参考的公式是:s[1]=a[1];s[n]=s[n-1]>=0?s[n-1]+a[n]:a[n 2020-05-14 …
求函数的拉氏反变换:X(s)=(s+2)/[s·(s+1)^2·(s+3)]我的解法如下:X(s) 2020-05-22 …
对于共享锁(S)和排他锁(X)来说,下面列出的相容关系中,不正确的是( )。A)S/X:FALSEB 2020-05-23 …
对于共享锁(S)和排他锁(X)来说,下面列出的相容关系中,不正确的是()。A.S/X:FALSEB. 2020-05-24 …
设实数集S是满足下面两个条件的集合:①1不属于S;②若a属于S,则1\1-a属于S.求证:若a属于 2020-06-18 …
设实数集S是满足下面两个条件的集合:①1不属于S;②若a属于S,则1\1-a属于S.求证:若a属于 2020-06-18 …
英语翻译1、A/S每月清洗一次,过滤网每半年更换一次.请在表中注明清洗和更换的时间.2、A/S每周 2020-07-04 …
设数集S符合下面两个条件:①1不属于S②若a∈S,则1/(1-a)∈S求证:a∈S,则1-1/a∈ 2020-07-11 …
设数集S是满足条件:若a∈S,则1/1-a∈S(a∈R且a≠0,1)(1)求证:若2∈S,则在S中 2020-07-11 …
设实数集S是满足下面两个条件的集合:①:1不属于S;②:若a∈S,则1/(1-a)∈S求证:若a∈ 2020-07-30 …