ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 22nd, 2003, 03:19 AM
Ggg123 Ggg123 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 Ggg123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Checking page size

Hey guys,

Is there some code to check the page size of some webpages i am opening using asp or javascript?
I want to check that they are all over a certain amount (ie: they display something, and not just a blank page. )Also some code to make sure that the page is still valid (ie: It does not display "Page cannot be found")

Thanks all

Reply With Quote
  #2  
Old September 22nd, 2003, 10:25 AM
tomsn tomsn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Dresden, Germany
Posts: 44 tomsn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 13 m 9 sec
Reputation Power: 5
Send a message via ICQ to tomsn
hi,

it's better to define your custom-error pages...
(if an error occured the suitable error page is loaded -- depending on the error-number (e.g. 404))

http://www.highcontext.com/Articles/howto/404.php

toms

Reply With Quote
  #3  
Old September 22nd, 2003, 11:06 AM
Ggg123 Ggg123 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 Ggg123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, the problem is that if the link has expired, or the page has moved, the site still loads up with no error msg. Just the site background, logo etc and no other text or pictures.
So there is no 404 msg.

Reply With Quote
  #4  
Old September 24th, 2003, 11:05 AM
davegerard davegerard is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 15 davegerard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 5 sec
Reputation Power: 0
As far as the page size goes. Try the FileSystemObject. There is a File.Size method. You may have to check from your referring page though.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Checking page size


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway