What you mean a URL exists or not?
Do you want to check for certain parameters passed in the query string. For
the you need to use Request.QueryString["parameterName"]
I want to check that URL exist in internet or internaet ??
Thanks for your help
Kumar Reddi said:
What you mean a URL exists or not?
Do you want to check for certain parameters passed in the query string. For
the you need to use Request.QueryString["parameterName"]
ALI-R said:
How can I programmatically figure out the a URL that user has been entered
is valid or not ,I mean wethere it exist or not????
Well .NET uses the HttpWequest and HttpWebResponse objects. You can do a
search on those. The theory is that you make a request passing the url. Then
you will get a response back. If the response code you got back is a 404
Error (Page not found), then the URL does not exist.
Easier said that done I guess.
Well .NET uses the HttpWequest and HttpWebResponse objects. You can do a
search on those. The theory is that you make a request passing the url.
Then
you will get a response back. If the response code you got back is a 404
Error (Page not found), then the URL does not exist.
Easier said that done I guess.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.