Jump to content
Sign in to follow this  
Guest David2376

.NET From External Server

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

or hopefully they have this data in a database and you can connect to it remotely. You will need the database user and password and hte ip of hte server for that.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...