Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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

Reply With Quote
  #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/

Reply With Quote
  #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."
Reply With Quote
  #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

Reply With Quote
  #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.

Reply With Quote
  #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."
Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolved! --Checking for Network Connection dartcoach Access 5 March 6th, 2008 01:07 PM
Bluetooth GPRS Internet connection with Ubuntu7.10 abhishekkashyap27 Linux 0 November 29th, 2007 07: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



All times are GMT -4. The time now is 04:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.