Does the Url exist in the web?Does the Url address exist in the web?
20 Replies - 1123 Views - Last Post: 18 March 2010 - 02:34 PM
#1
Does the Url exist in the web?
Posted 17 March 2010 - 02:19 PM
Hi everyone;
I'd like to control textbox in C#.NET
How can i control that the URL or the text we entered to textbox exist in the web or not?
What should i do?
Looking for your suggestions.
Thanks.
I'd like to control textbox in C#.NET
How can i control that the URL or the text we entered to textbox exist in the web or not?
What should i do?
Looking for your suggestions.
Thanks.
Replies To: Does the Url exist in the web?
#3
Re: Does the Url exist in the web?
Posted 17 March 2010 - 02:37 PM
What do you mean Dns Class?
I don't understand a thing from you linked to?
I don't understand a thing from you linked to?
#5
Re: Does the Url exist in the web?
Posted 17 March 2010 - 03:15 PM
Gonzilla thank you for your interest.
The link you gave explains something but doesn't explain how to do.
How to use these codes??
public static class Dns
IPHostEntry hostInfo = Dns.GetHostByName("www.contoso.com");
Please
me.
The link you gave explains something but doesn't explain how to do.
How to use these codes??
public static class Dns
IPHostEntry hostInfo = Dns.GetHostByName("www.contoso.com");
Please
#6
Re: Does the Url exist in the web?
Posted 17 March 2010 - 03:17 PM
Did you even try anything? Or did you just open that link, look at it for a second and think "I dont understand" then come back here looking for someone to write it for you?
#7
Re: Does the Url exist in the web?
Posted 17 March 2010 - 03:22 PM
Of course i tried. But i dont understand how to use it?
i have a textbox and a button. Button will control the textbox.
For instance: when we click the button messagebox will show the url is exist or not.
I think u understand me. But im not good at c#. Plz help me. Thanks
i have a textbox and a button. Button will control the textbox.
For instance: when we click the button messagebox will show the url is exist or not.
I think u understand me. But im not good at c#. Plz help me. Thanks
#8
Re: Does the Url exist in the web?
Posted 17 March 2010 - 04:21 PM
I'm sorry about the bad link...too many things going at once.
#9
Re: Does the Url exist in the web?
Posted 17 March 2010 - 07:43 PM
Quote
Of course i tried. But i dont understand how to use it?
i have a textbox and a button. Button will control the textbox.
For instance: when we click the button messagebox will show the url is exist or not.
I think u understand me. But im not good at c#. Plz help me. Thanks
i have a textbox and a button. Button will control the textbox.
For instance: when we click the button messagebox will show the url is exist or not.
I think u understand me. But im not good at c#. Plz help me. Thanks
Maybe you should post this in Post a Job forum so you can pay someone to do this work for you.
#10
Re: Does the Url exist in the web?
Posted 18 March 2010 - 05:52 AM
Thank you for suggestion. But i don't need a suggestion. i need a solution
#11
Re: Does the Url exist in the web?
Posted 18 March 2010 - 06:17 AM
Espirator,
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
#12
Re: Does the Url exist in the web?
Posted 18 March 2010 - 11:05 AM
beju0506, on 18 March 2010 - 05:17 AM, said:
Espirator,
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
I can understand using a regex for this but if you want to see if the url is an actual live website then you are looking at writing a bit more code to accomplish this. I say a bit, maybe 20 to 30 lines.
#13
Re: Does the Url exist in the web?
Posted 18 March 2010 - 11:08 AM
#14
#15
Re: Does the Url exist in the web?
Posted 18 March 2010 - 11:13 AM
TwistedMind, on 18 March 2010 - 10:05 AM, said:
beju0506, on 18 March 2010 - 05:17 AM, said:
Espirator,
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
In this forum, people generally don't give you exact code to answer your question; you're expected to take the suggestions people give and try to develop your own solution... that said, this might help you out some:
http://www.vcskicks....eck-website.php
It's a different solution (not using the DNS class) and checks to see if the entire URL is valid, not just the domain name. Next time, you should try and really thoroughly Google what you're looking for... I found this page on Google in the first three links.
Here's another:
http://carso-owen.bl...accessible.html
Hopefully this will put you in the right direction.
-Justin
I can understand using a regex for this but if you want to see if the url is an actual live website then you are looking at writing a bit more code to accomplish this. I say a bit, maybe 20 to 30 lines.
Not sure where anybody mentioned using a regular expression? Maybe I missed it. The 2 links I saw that you quoted both connect to the URL and check the response.
|
|

New Topic/Question
Reply




MultiQuote








|