Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have found your site brilliant. What makes it good are the people that contribute to the site..."

Geography

Where in the world do Tek-Tips members come from?

Notification type of problem in website

me64 (Programmer)
14 Jun 12 4:02
hi,
i need source code if in another site was problem, Notification type of problem with me
why is Offline. the reason Offline
This Should support for any website
This website is to provide services to other websites
jbenson001 (Programmer)
14 Jun 12 10:19
What are you saying? Is there a question in there somewhere?
me64 (Programmer)
14 Jun 12 15:28
Obviously, I want my site to connect to a database. This database contains the addresses of other sites. The website address to check whether the websites are down or not.
What I want and it is important to me: Must identify why the website is down (find problem)
jbenson001 (Programmer)
14 Jun 12 18:27
You will have to make a webrequest to each site and interpret the response code:
http://www.w3schools.com/tags/ref_httpmessages.asp
me64 (Programmer)
15 Jun 12 4:31
How that I use in asp.net 3.5
jbenson001 (Programmer)
15 Jun 12 10:52
You have to create a webrequest object, and make the request. There are many, many examples on line. Then you get the response back, you put that into a response object. From there you can read the response code and then interpret that from the link I sent you.
me64 (Programmer)
15 Jun 12 13:38
If you put a code sample here, I'll thank you
jbenson001 (Programmer)
15 Jun 12 14:00
me64 (Programmer)
16 Jun 12 2:38
hi,
HttpRes take initialize in section Try, but i can't use HttpRes in section Catch with the same amount in Try

CODE --> c#

try
{
//Code Example
string url = "http://www." + TextBox1.Text;
HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create(url);
httpReq.AllowAutoRedirect = false;

HttpWebResponse httpRes = (HttpWebResponse)httpReq.GetResponse();

Label1.Text = (((HttpWebResponse)httpRes).StatusDescription);

// Close the response.
httpRes.Close();
catch
{

Label1.Text = (((HttpWebResponse)httpRes).StatusDescription);

}
me64 (Programmer)
16 Jun 12 4:32
get http a number List of HTTP status codes . what i get that number with HttpWebResponse

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close