Guest David2376 Posted September 14, 2006 Share Posted September 14, 2006 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 More sharing options...
boen_robot Posted September 14, 2006 Share Posted September 14, 2006 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 More sharing options...
aspnetguy Posted September 14, 2006 Share Posted September 14, 2006 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. 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