Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 14th, 2006, 05:00 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Checking for active Internet connection

I have a code a got off the Internet (RSS2HTML) that lets me check RSS feeds and write them into html using ASP on my Intranet. Is there any way, in ASP, a could check for an active internet connection before carrying this code out? This would then let the users of my intranet know why the page is failing due to no net connection.

Cheers

  #2 (permalink)  
Old August 18th, 2006, 02:37 AM
Registered User
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to albertindian2000
Default

active internet connection means client connected or whether your internet connection is active.

If it is clientconnected you can use
request.isclientconnected function this will specify whether the client browser session is active or not

Albert
http://www.bepenfriends.com/

  #3 (permalink)  
Old August 18th, 2006, 03:26 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

isClientConnected will only test to see if the PC is connected to the server which may or may not mean that the user is connected to an outside connection.

Jim, to (basically) answer your question, there is no real way to test if the client is connected to the internet through asp. What you could do, is if your RSS feed returns a 404 type error then you know either A)the feed is offline or 2) the user is not connected to the internet so you could display a messgage accordingly (as long as you are able to trap the error of course)

hth.

"The one language all programmers understand is profanity."
  #4 (permalink)  
Old August 19th, 2006, 02:46 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thankyou both for your help. dparsons, how would I go about trapping the error code?

Thanks again

  #5 (permalink)  
Old August 19th, 2006, 12:40 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just to keep you informed. I have managed to solve my problem with help from another forum. Have a look at:

http://classicasp.aspfaq.com/general...-web-page.html

Thanks for your help anyway.

  #6 (permalink)  
Old August 20th, 2006, 01:55 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Glad you figured it out jim.

"The one language all programmers understand is profanity."


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolved! --Checking for Network Connection dartcoach Access 5 March 6th, 2008 02:07 PM
Bluetooth GPRS Internet connection with Ubuntu7.10 abhishekkashyap27 Linux 0 November 29th, 2007 08:14 AM
Detect Internet Connection dparsons C# 0 August 2nd, 2006 01:50 PM
Urgent: Internet Connection in Pocket PC Applicati rcmetta BOOK: Professional C#, 2nd and 3rd Editions 0 May 3rd, 2004 01:15 AM
How to prompt user Internet Connection Wizard? joan VS.NET 2002/2003 0 September 30th, 2003 10:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.