473,320 Members | 1,987 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,320 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 1235
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.