Jump to content

.NET From External Server


Guest David2376

Recommended Posts

Guest David2376

I do not know anything about .NET coding, so go easy on me. I am working on a project for a client. They currently have a website set up for their locationhttp://www.planetbeach.com/SalonWebPages/t...main&ID=510I am trying to build a page for them that will not be hosted on the same server. I need to know how to pull the information for salon hours, salon news, and pictures from their current site and display them on the new site. I just need the content and not the page header, footer, and menu. Is there a way to do this? It looks as if it would be pretty easy for anyone with .NET knowledge. Any help would be greatly appreciated!David

Link to comment
Share on other sites

Pictures can be pulled directly by typing absolute URIs, instead of relative ones. <img src="http://w3schools.invisionzone.com/style_images/w3sbanner.gif"/> will display the forum's logo, no matter on which domain you're using it.As for data, SSIs can include the whole file, without doing anything to it. Scince you want only the data, there's a slightly different approach. Save the data as X(HT)ML. Then, from the other server, use an XPath expression on that document that will extract the appropriate data. For example, with an X(HT)ML of:

<ul><li>Some data</li><li>Some more data</li><ul>

The XPath expression "/ul/li[position()=2]" will show "Some more data". You can also use a database like MySQL, but XML based languages are the only ones supported across platforms.How to initiate that XPath query is another question though and I don't know the answer to this one. But I'm sure you can aim the query to a remote document.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...