Ikeni Posted March 28, 2013 Share Posted March 28, 2013 Hi, I need to display a picture on a web page. The picture is located on a third party's server. If the picture does not exist on the other server I need to display an alternate picture located in my directory. I am able to do this with a php script by using the get_header function and if I get a 200 ok returned I place the external url in the image tag and if I don't get the 200ok code I place the local path and file name in the image tag. I am a novice with asp.net and could use any help pointing me in the right direction to accomplish this. Thanks.... Link to comment Share on other sites More sharing options...
justsomeguy Posted March 28, 2013 Share Posted March 28, 2013 It looks like you can send a head request instead of get or post: http://stackoverflow.com/questions/6237734/how-to-request-only-the-http-header-with-c Link to comment Share on other sites More sharing options...
Ikeni Posted March 28, 2013 Author Share Posted March 28, 2013 Thank you. Would you have this code in VB.net? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 28, 2013 Share Posted March 28, 2013 I just did a search and that came up, I don't have a .NET platform here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now