OHHHHHHHHH YESSSSSSSSSSS I solved the problem.
I got it guys
I replaced :
if(curr=="undefined"){
curr=1}
with this:
if(isNaN(curr)){
curr=1}
and the page is displayed as wished.
Thanks for everyone who helped.
OHHHHHHHHH YESSSSSSSSSSS I solved the problem.
I got it guys
I replaced :
if(curr=="undefined"){
curr=1}
with this:
if(isNaN(curr)){
curr=1}
and the page is displayed as wished.
Thanks for everyone who helped.
Here is the first part of my code:
<%@ language=JavaScript%>
<!--#INCLUDE FILE="budget.html"-->
<head><link rel="StyleSheet" type="text/css" href="cera.css" >
<title>finition</title><%
budget=parseFloat(Request.cookies("budget"))
%>
</head>
<BODY>
<%
curr=Request.queryString("page")...
Yes I did.
And the error is :
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting the varchar value 'undefined' to a column of data type int.
thank you
here is the code I wrote:
if(Request.queryString("page") =="" ){
curr = 1}
else{
curr = parseInt(Request.queryString("page"))
}
but the error is the same
my head is getting biggggggger and heavier
I created a page called home.asp and it redirect to index.asp?page=1, then when I click on different categories, everything is working.
The thing is why index.asp show always the same error!!!
here is what it says:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'NaN'.
/swt/index.asp, line 14
Well, I agree that I have to start the page at 1 in order to display dynamically other pages from the Date Base.
my code is this:
<%
curr=parseInt(Request.queryString("page"))
con=Server.createObject("ADODB.Connection")
con.open("transact", "sa", "gouba570")
rs=con.execute("SELECT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.