Ask a Question related to ASP Database, Design and Development.
-
Darren Heinrich #1
Dynamic PageSize property
I'm getting an error when trying to set the RecordSet.Pagesize property by
using a variable.
The error is:
----------------------------------------------------------------------------
----------------------
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/tmc/theform_resp.asp, line 122
----------------------------------------------------------------------------
-----------------------
Line 122 is:
----------------------------------------------------------------------------
----------------------
recSet1.PageSize = recNum
----------------------------------------------------------------------------
---------------------
The code that sets the variable recNum is:
----------------------------------------------------------------------------
---------------------
If (Not IsNumeric(Request("resultsPerPage"))) Then
response.Write("All<br>")
recNum = 500
Else
recNum = CInt(Request.Form("resultsPerPage"))
End If
Thanks
Darren
Darren Heinrich Guest
-
Inspector Property: Dynamic tags
Hi, I am working on an extension for Dreamweaver, currently on an Inspector. So what I understand is, that if you use the following tag: <!--... -
Missing Dynamic Button from Property Inspector
OK, I have the Studio MX Book and am walking myself through the Tri Motors tutorial. Seems straight forward.....however, when I go back to my search... -
Composite control with dynamic controls depending on a property value
Hi, all. I am really stuck here. I've written a few composite controls before and fully understand the "typical" scenarios. However, this one is... -
Dynamic height and pagesize adjustment of Grid
Hey All, I have an application that uses DATAGRID control. The current grid have remarks field for each row, which can actually take upto 500... -
Dynamic PageSize based on Browser body.clientHeight
Anyone have any ideas on how to adjust the datagrid's PageSize value based on the client browser size and re-adjust itself when a client re-sizes... -
Bob Barrows #2
Re: Dynamic PageSize property
Darren Heinrich wrote:
--> I'm getting an error when trying to set the RecordSet.Pagesize
> property by using a variable.
>
> The error is:
> ----------------------------------------------------------------------------> ----------------------
> ADODB.Recordset (0x800A0BB9)
> Arguments are of the wrong type, are out of acceptable range, or are
> in conflict with one another.
> /tmc/theform_resp.asp, line 122
> ----------------------------------------------------------------------------> -----------------------
>
> Line 122 is:
> ----------------------------------------------------------------------------> ----------------------
> recSet1.PageSize = recNum
> ----------------------------------------------------------------------------> ---------------------
> The code that sets the variable recNum is:
> --------------------------------------------------------------------------Do you get the error when setting it to a literal value (.PageSize = 500)?> ---------------------
> If (Not IsNumeric(Request("resultsPerPage"))) Then
> response.Write("All<br>")
> recNum = 500
> Else
> recNum = CInt(Request.Form("resultsPerPage"))
> End If
>
>
> Thanks
>
> Darren
or only when you set it to the variable? If the latter, then the variable
does not contain what you think it contains. Response.Write it.
HTH.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest



Reply With Quote

