navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

RE: ASP page not displaying all the data

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> RE: ASP page not displaying all the data
Page: <<   < prev  1 [2]
 
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/5/2007 14:31:56   
I've looked at using getrows, but since I'm not very proficient with arrays, wouldn't it be a bit cumbersome to try and create an array that would display this many records?

_____________________________

Regards,

Joe Kauffman

(in reply to Joe Kauffman)
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 10:23:37   
Something is definately out of whack...I created a new database yesterday, and created a simple insert page and can insert to the 5 varchar fields in the table just fine. But I then created a simple page with a recordset and <%= the 5 fields and none of them display.

So it almost seems like it's a problem with SQL?

_____________________________

Regards,

Joe Kauffman

(in reply to Joe Kauffman)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 11:15:03   
Can you show me the simple page? (Its not using DW again is it? :) )

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joe Kauffman)
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 11:58:39   
Spooky, I think I learned my lesson on the mucky DW crap. I stopped and restared IIS and it seems to have taken care of this latest problem. But I'm still sweating bullets over the original issue. I've spent days working on trying to figure out where the problem is with no luck. It's just strange that I can single out a bunch of the fields and try to just display them by theirselves and the value still won't show.

Thanks fo the help.

_____________________________

Regards,

Joe Kauffman

(in reply to Spooky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 14:09:49   
Take it step by step - make sure you can show the data before even contemplating saving it to database.
I would definitely reconsider breaking down a 200 odd item input form to smaller chunks

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joe Kauffman)
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 14:15:57   
Alright, I'm going to start from scratch again. I have an insert page that inserts into all the rows in the table and works wonderful. It's just displaying their values that isn't working.

Do you think with that many fields that there is a benefit or drawback of doing a select * or doing a select field1, field2 etc?

_____________________________

Regards,

Joe Kauffman

(in reply to Spooky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 15:17:34   
I would always aim to do "select field1, field2"
Try it with a few fields at first. Use variables immediately and then display via the variables.
Keep adding fields until it fails

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joe Kauffman)
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 16:46:41   
I don't want to speak to soon but I think I finally got to the problem. All the comment fields in the page are TEXT type in the db so I removed them from the select clause and removed them from the page. Now the values of the fields are showing! I do need to be able to display them so can I just call them in a seperate recordset?

Thanks again for your help.

_____________________________

Regards,

Joe Kauffman

(in reply to Spooky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP page not displaying all the data - 10/9/2007 20:22:13   
Yep, just place them (the column names) at the END of the SQL string and make sure they are assigned to a variable after being pulled out of the DB

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joe Kauffman)
Joe Kauffman

 

Posts: 204
Joined: 6/9/2004
Status: offline

 
RE: ASP page not displaying all the data - 10/10/2007 11:21:00   
Spooky,

I'm assigning them to variables now but I want to make sure I'm doing this correctly. Does the naming convention matter really? After I call them in the recordset, I'm placing code similar to this after the <head>:

<% usedoilcomm=truckcomm("UsdOilComm")%>

Then <%=usedoilcomm%> in place where it needs to be displayed. Is this the most efficient way to do it?

Thanks again.

_____________________________

Regards,

Joe Kauffman

(in reply to Spooky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP page not displaying all the data - 10/10/2007 13:50:23   
Yep, thats fine.

If you want to be more accurate, I would declare each variable and use option explicit.
This does help with trouble shooting as any undeclared errors (or spelling mistakes) would be highlighted.
However it does mean that all variables need to be declared (eg DIM YourVariable)
It is extra work, but if you are happy enough troubleshooting existing asp code, then I wouldnt be to concerned with using it.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joe Kauffman)
Page:   <<   < prev  1 [2]

All Forums >> Web Development >> ASP and Database >> RE: ASP page not displaying all the data
Page: <<   < prev  1 [2]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts