J
julian
Hi,
I have situation where I want to use a stylesheet stored
in one of two possible urls. Basically I need to say if
the first url doesn't exist, use the second url.
I can do this by creating a WebRequest and intercepting
the exception raised by the GetResponse if the first url
doesn't exisit, but this feels like a hack to me and I was
hoping there would be some simple way (similar to
File.Exists) to check whether a url refered to a file that
was actually there?
Any help would be appreciated.
Thanks.
I have situation where I want to use a stylesheet stored
in one of two possible urls. Basically I need to say if
the first url doesn't exist, use the second url.
I can do this by creating a WebRequest and intercepting
the exception raised by the GetResponse if the first url
doesn't exisit, but this feels like a hack to me and I was
hoping there would be some simple way (similar to
File.Exists) to check whether a url refered to a file that
was actually there?
Any help would be appreciated.
Thanks.