Problems with recordset pagination in ASP

Updated on technology 2024-02-09
6 answers
  1. Anonymous users2024-02-05

    Specify the cursor parameter when rs is turned on.

    sql,conn,1,1

  2. Anonymous users2024-02-04

    Don't run it straight like this:

    set rs =

    To do this: set rs ="")

    sql,conn,3,2

    The root cause is the cursor.

  3. Anonymous users2024-02-03

    <%dim pre,last,page,intpage,iset ors = "" )

    ssql = "select * from newsdata order by d_id desc"

    30 'This sets the number of records to be displayed per page.

    3ssql,oconn,0,2,1 'Here you query the SQL and get the result record set.

    pre = true

    last = true

    page = trim("page"))

    if len(page) = 0 thenintpage = 1

    pre = false

    elseif cint(page) =< 1 thenintpage = 1

    pre = false

    elseif cint(page) >= thenintpage =

    last = false

    elseintpage = cint(page)

    end if

    end if

    end if

    if not then

    intpage

    end if

    >"><%for i=1 to

    if or then exit for%>

    if ors("d_picture") <"" then%>">

    end if%>

    <%=outhtml(ors("d_title"))%else%>

    <%=i%>

    end if

    next>page <%.

    set ors= nothing

  4. Anonymous users2024-02-02

    You can't seem to open like this with this pagination method, I've encountered it before.

    You try rs, conn, 1, 3

    or rs, conn, 0, 2, 1

  5. Anonymous users2024-02-01

    It is recommended to read professional books on this subject, and it is difficult to get a satisfactory answer to this question.

  6. Anonymous users2024-01-31

    The landlord is the same as I used to be.,Use table to operate horizontally.,Use div to operate horizontal.。

    Direct Output: Your Content.

    It's horizontal, and you don't have to worry about when to change the next line.

    As for pagination, I used leaf pagination after countless tosses. It's the New Year, don't toss...

Related questions
14 answers2024-02-09

> deleted.

As you can see from the above, the parameter you want to pass is named id >>>More

4 answers2024-02-09

I think the first thing the landlord knows is,Why:name='"+name+"', and tel="+ is not added to the back of the tel"'。 >>>More