473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Is it possible to check the existence of a URL in asp.net?

The senario is we have a table that contains a number of URLs and we
want to check periodically that they exist. If not, then we will
create a report and send it to a admin.
So what I need to do is something like this,
---------------------------------------------------------------
run schedule task -- I have done it so don't worry about it

get URLs from DB

if any URLs don't exist then <<<<= HOW TO DO THIS? ANT EXAMPLE
CODE????

create a report and send it to admin

end of task
---------------------------------------------------------------
Thanks a lot in advance for your precious time.

All the best
Nov 17 '05 #1
2 1239
The net classes have a whole bunch of methods to allow you to request URLS
and get back success/failure codes, and the quick starts have examples to
get you started.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Leon" <yo******@yahoo.com> wrote in message
news:8a**************************@posting.google.c om...
The senario is we have a table that contains a number of URLs and we
want to check periodically that they exist. If not, then we will
create a report and send it to a admin.
So what I need to do is something like this,
---------------------------------------------------------------
run schedule task -- I have done it so don't worry about it

get URLs from DB

if any URLs don't exist then <<<<= HOW TO DO THIS? ANT EXAMPLE
CODE????

create a report and send it to admin

end of task
---------------------------------------------------------------
Thanks a lot in advance for your precious time.

All the best

Nov 17 '05 #2
The net classes have a whole bunch of methods to allow you to request URLS
and get back success/failure codes, and the quick starts have examples to
get you started.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Leon" <yo******@yahoo.com> wrote in message
news:8a**************************@posting.google.c om...
The senario is we have a table that contains a number of URLs and we
want to check periodically that they exist. If not, then we will
create a report and send it to a admin.
So what I need to do is something like this,
---------------------------------------------------------------
run schedule task -- I have done it so don't worry about it

get URLs from DB

if any URLs don't exist then <<<<= HOW TO DO THIS? ANT EXAMPLE
CODE????

create a report and send it to admin

end of task
---------------------------------------------------------------
Thanks a lot in advance for your precious time.

All the best

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Christopher Nelson | last post by:
I have a multi-page site that I want to be able to resume at the same page if the user leaves and comes back later (say, days later). I'm thinking that I'll set a cookie as each page is displayed...
8
by: Igor Kuklin | last post by:
I know how to detect .NET Framework, and I know how to re-register ASP.NET. But is there any way to detect that ASP.NET is not registered with IIS? I want my installation program to treat this case...
6
by: TaeHo Yoo | last post by:
The senario is we have a table that contains a number of URLs and we want to check periodically that they exist. If not, then we will create a report and send it to a admin. So what I need to do...
1
by: John | last post by:
Hi all, How do I programmatically check for the existence of a DLL in the BIN folder prior to using it? I don't want to hard-code the path (i.e. "C:\InetPub\wwwroot\mysite\bin\MyDLL.dll"). ...
2
by: www.MessageMazes.com | last post by:
Greetings, I'm experimenting with an ASP page that reads data from a file name that is passed to it as a parameter, as in this page, which works, because the "good" file exists. ...
5
by: Gary Wessle | last post by:
hi or is there a better way to check the existence of "py" in a string "s"? string s = "djrfpyfd"; string t = "py"; string r = s.substr(s.find("py"),2); cout << (t==r) << endl;
10
by: Dieter Pelz | last post by:
Hallo, what is the best way to check the installation of mfc80 and vcrt sidebyside assemblies? Best Regards, Dieter Pelz
3
by: trint | last post by:
How can I do this with my c# code with my website(because the file is there, but the code doesn't return it)?: if(File.Exists(String.Format("~/images/categories/{0}", sFileName)) return...
0
by: MIRRA | last post by:
Hi I have a UNIX script which creates a report. In that script I have to define the java classpath. Also I need to check if the java classpath specified exists or not. Below is the command i use ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.